• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Handling key equivalents in a controller class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Handling key equivalents in a controller class? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: examining images
  • Next by Date: Re: how do I make chat bubbles using a custom cell
  • Previous by thread: Re: Handling key equivalents in a controller class?
  • Next by thread: Re: Handling key equivalents in a controller class?
  • Index(es):
    • Date
    • Thread