Detecting fullscreen on Mac

后端 未结 4 1348
梦谈多话
梦谈多话 2021-01-22 18:53

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

4条回答
  •  情歌与酒
    2021-01-22 19:27

    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

提交回复
热议问题