On Sep 3, 2009, at 13:39, McLaughlin, Michael P. wrote:

The one example I found like that passed the event on even though it had
been handled.

Is

@interface MyApplication : NSApplication
{
}

@implementation MyApplication
-(void)sendEvent:(NSEvent *)evt
{
   if ([evt type] == NSApplicationDefined)
       <doSomething>
   else
       [super sendEvent:evt];
}
@end

better?

Yes. I didn't want to risk insulting you by telling you what you already knew. As you did know. :)

I *did* risk insulting you by reminding you to change the Principal Class, because that's easy to overlook even when you know it needs to be done.


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to