• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting lack of user input system wide.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Detecting lack of user input system wide. (From: Kenny Carruthers <email@hidden>)

  • Prev by Date: Re: Problem with missing symbol
  • Next by Date: Suspend the execution of background thread on modal window launch
  • Previous by thread: Detecting lack of user input system wide.
  • Next by thread: Bug with IB?
  • Index(es):
    • Date
    • Thread