Re: creating a cocoa nsapp event polling callback
Re: creating a cocoa nsapp event polling callback
- Subject: Re: creating a cocoa nsapp event polling callback
- From: "Julien Jalon" <email@hidden>
- Date: Thu, 27 Sep 2007 14:40:49 +0200
To be clear, change your default application's NSPrincipalClass in
Info.plist to a custom subclass of NSApplication and override sendEvent:
@interface MyApplication : NSApplication
@end
@implementation MyApplication
- (void)sendEvent:(NSEvent *)event
{
if(IWantToProcessThisEventMySelf(event)) {
// ...
} else {
[super sendEvent:event];
}
}
@end
_______________________________________________
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