On 13 Mar 2012, at 22:50, Eric Wing wrote: > I have a very simple custom view where I override keyDown: and keyUp:. > > > Is there a way to get the text field (and any other widgets that might > do this like NSTextView) to consume the events they process so my > custom view doesn't receive them?
Are you sure you aren't accidentally passing the event on up the responder chain? - (void)keyDown:(NSEvent *)theEvent { // consume event if ([theEvent modifierFlags] & NSNumericPadKeyMask) { [self processtEvent:theEvent]; } // pass on up the responder chain [super keyDown:theEvent]; } Regards Jonathan Mitchell Mugginsoft LLP _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com