NSDocument-oriented app and -keydown
NSDocument-oriented app and -keydown
- Subject: NSDocument-oriented app and -keydown
- From: Nick <email@hidden>
- Date: Thu, 29 Sep 2011 17:42:03 +0300
how can I get a keydown (and keyup) events in an NSDocument-oriented
application for a particular document's window?
I'd like to get a control activated/deactivated on the window, depending on
whether the specific key is pressed or released.
I have found this:
http://stackoverflow.com/questions/1526512/nsdocument-and-keyboard-like-keydown
the answer that worked there was to use Carbon Shortcuts, but this does not
let (as i understand) attach the event to the particular window-document, it
is application wide.
How can I receive such an event in an NSDocument's subclass?
Thank you!
_______________________________________________
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