Re: Inactivity Timer
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