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 (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