Re: Detecting lack of user input system wide.
Re: Detecting lack of user input system wide.
- Subject: Re: Detecting lack of user input system wide.
- From: "David M. Cotter" <email@hidden>
- Date: Thu, 10 Dec 2009 08:47:48 -1000
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 (email@hidden)
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:
This email sent to email@hidden