• 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: Inactivity Timer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inactivity Timer


  • Subject: Re: Inactivity Timer
  • From: Dave Keck <email@hidden>
  • Date: Tue, 24 Nov 2009 18:07:50 -0500

Not sure about the typing scenario, but scrolling is implemented using
-nextEventMatchingMask:untilDate:inMode:dequeue: (which runs the run
loop recursively in the NSEventTrackingRunLoopMode mode) which
bypasses NSApplication's -sendEvent:.

Off the top of my head, it seems overriding -nextEventMatchingMask:...
would be a better choice. I recommend filtering specifically for
user-interaction events before resetting the timer; from my limited
testing, I've found there are some magic events that enter the event
stream that aren't directly related to user interaction. (See
http://lists.apple.com/archives/Applescript-implementors/2009/Aug/msg00012.html.)
_______________________________________________

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: 
 >Inactivity Timer (From: Kevin <email@hidden>)

  • Prev by Date: How do you use an Application ID for an iPhone application
  • Next by Date: Re: Inactivity Timer
  • Previous by thread: Inactivity Timer
  • Next by thread: Re: Inactivity Timer
  • Index(es):
    • Date
    • Thread