I am writing an IM client for Mac (in Python, but an Objective C / Cocoa solution here is fine). I want to detect whether or not the user is currently watching a movie or playin
not entirely sure how to do this, but the apple docs say:
To track changes in the login session’s presentation mode, you may handle the kEventAppSystemUIModeChanged Carbon event
kEventAppSystemUIModeChanged