Re: Handling key equivalents in a controller class?
Re: Handling key equivalents in a controller class?
- Subject: Re: Handling key equivalents in a controller class?
- From: Jens Alfke <email@hidden>
- Date: Thu, 17 Jul 2008 09:31:53 -0700
On 16 Jul '08, at 2:53 PM, Matt Neuburg wrote:
Implement keyDown: in the NSWindowController?
keyDown: only gets sent to the key view, whether or not it handles
that keystroke. Since the method returns void, there's no way for
AppKit to tell whether a responder handled the keystroke or not, so it
can't pass it up the chain.
I'm not seeing a reason why
you need performKeyEquivalent to catch unmodified Esc and letter
keys...
Because -performKeyEquivalent:, on the other hand, does return a BOOL,
so AppKit sends it to all the views in succession till one returns
YES. But it only sends it to the window and views, not delegates.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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