On May 17, 2010, at 1:21 PM, Paul Sanders wrote:
> The approach I use is to subclass NSApplication and throw awat mouse, 
> keyboard and gesture events in -[MySubclassedNSApplication sendEvent:] 
> instead of calling super.  For added style, beep.

 For the OP's case, you don't even need to subclass. I'd suppose you should be 
able to run your own event loop by calling nextEventMatchingMask:... and (as 
needed) sendEvent: in a loop (+ creating/destroying an autorelease pool each 
time round).

-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."



_______________________________________________

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

Reply via email to