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 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 after
> 5 minutes.
> 
> Sorry if this is actually easy to find (or in the archives) but I can't seem
> to figure out the right Google search keywords to return a decent answer.
> 
> Sincerely,
> Kenny

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to