For my fullscreen app, I want to hide the cursor after a few seconds if it's not moved, like the fullscreen mode in QuickTime or iTunes. Presumably I'm looking to call [NSCursor setHiddenUntilMouseMoves:YES]
, but how do I know when to call it?
Presumably I'm looking for the same as http://stackoverflow.com/questions/744980/hide-mouse-cursor-after-an-idle-time but on the Mac. I couldn't find a way to get similar a "idle time". (Plus, I probably don't care about keyboard events, just mouse movement.)