Key presses in NSView
Key presses in NSView
- Subject: Key presses in NSView
- From: Gordon Apple <email@hidden>
- Date: Thu, 04 Oct 2012 16:17:57 -0600
- Thread-topic: Key presses in NSView
I have a screen overlay window/view (one for each available screen) which
accepts mouse events (up, down, dragged). I want the user to be able to
cancel and dismiss the overlay window(s) by hitting the ³any² key (old MS
joke). Unfortunately, overriding keyDown/keyUp does not work. I just get a
system beep. Any ideas?
This is essentially the DragMouseBoxView (simple subclass of NSView) from
the AVScreenShack sample. It is set to acceptFirstResponder and
acceptFirstMouseClick.
_______________________________________________
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