Re: Detecting lack of user input system wide.

2009-12-10 Thread David M. Cotter
dunno about cocoa, but in Carbon land you can do InstallEventLoopIdleTimer(). I expect there is an equivalent in cocoa On Dec 10, 2009, at 1:10 AM, Kenny Carruthers wrote: > Hello, > > What is the correct way to detect that there has been no keyboard or mouse > input by the user over a given p

Detecting lack of user input system wide.

2009-12-10 Thread Kenny Carruthers
Hello, What is the correct way to detect that there has been no keyboard or mouse input by the user over a given period of time? Ideally, I'd like my application to stop a timer if there is no activity at all from the user in any application. Think of a time tracking app that stops tracking time a