I haven't coded for macOS for a while... well, for almost ten years :-) But as far as I remember, there's a 'NotificationCenter' which broadcasts system state changes to apps. Maybe it has a 'Desktop changed' event?
I haven't coded for macOS for a while... well, for almost ten years :-) But as far as I remember, there's a 'NotificationCenter' which broadcasts system state changes to apps. Maybe it has a 'Desktop changed' event?