NSDocument-oriented app and -keydown

2011-09-29 Thread Nick
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:

Re: NSDocument-oriented app and -keydown

2011-09-29 Thread Kyle Sluder
On Thu, Sep 29, 2011 at 7:42 AM, Nick eveningn...@gmail.com wrote: 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

Re: NSDocument-oriented app and -keydown

2011-09-29 Thread Jerry Krinock
On 2011 Sep 29, at 07:42, Nick wrote: 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? I'm not sure what you mean by attach the event, Nick, but the Mac has

Re: NSDocument-oriented app and -keydown

2011-09-29 Thread Kyle Sluder
On Thu, Sep 29, 2011 at 8:30 AM, Jerry Krinock je...@ieee.org wrote: On 2011 Sep 29, at 07:42, Nick wrote: 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?

Re: NSDocument-oriented app and -keydown

2011-09-29 Thread Nick
Thank you ___ 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:

Re: NSDocument-oriented app and -keydown

2011-09-29 Thread Richard Somers
On Sep 29, 2011, at 8:42 AM, Nick wrote: 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. Key