Re: keyDown:not receiving Command + key events, space bar, left/right arrows
Re: keyDown:not receiving Command + key events, space bar, left/right arrows
- Subject: Re: keyDown:not receiving Command + key events, space bar, left/right arrows
- From: Matt Neuburg <email@hidden>
- Date: Thu, 03 Mar 2005 10:50:27 -0800
On Wed, 02 Mar 2005 19:14:27 -0500, Luc Vandal <email@hidden> said:
>By the way, I'm handling keyDown and performKeyEquivalent in the
>controller class (which is the delegate).
We just went through this! Okay, so here we go *again*. There are two
responder chains (at least). The delegate, qua delegate, is NOT in the
responder chain for user-generated events such as keyDown: and
performKeyEquivalent:. That chain includes the view hierarchy, the window,
and the NSWindowController if there is one. You can also insert a custom
NSResponder into the chain to catch events (some people prefer this
architecture, instead of sub-classing). m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden