Re: Control key
Re: Control key
- Subject: Re: Control key
- From: Gerard Iglesias <email@hidden>
- Date: Sun, 1 Jul 2001 23:32:27 +0200
The Cocoa way to do that is to get the current event, because your menu
action come from an event that is accessible from the NSApp object or
the window:
NSEvent * last = [NSApp currentEvent];
if ([last modifierFlags] & NSAlternateKeyMask)
return self;
else
return [super hitTest:aPoint];
Voila...
Girard