• 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: Subverting the first responder chain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subverting the first responder chain


  • Subject: Re: Subverting the first responder chain
  • From: "Hamish Allan" <email@hidden>
  • Date: Fri, 28 Mar 2008 01:09:11 +0000

On Fri, Mar 28, 2008 at 12:52 AM, John Stiles <email@hidden> wrote:

>  However, I have a few menu items which respond to atypical hotkeys (e.g.
>  one responds to "space", another to "option+X"). In this case, I've
>  found that the view gets a -keyDown: event, which it dutifully handles,

Perhaps the right way to look at it from the custom view's perspective
is not "should this be handled by the menu?" but "should this be
handled by me?"

If the answer to the latter question is "no", you should call "[super
keyDown:]". If the answer is "yes", you have an ambiguity in your
keyboard shortcuts.

Hamish
_______________________________________________

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

  • Follow-Ups:
    • Re: Subverting the first responder chain
      • From: John Stiles <email@hidden>
References: 
 >Subverting the first responder chain (From: John Stiles <email@hidden>)

  • Prev by Date: Subverting the first responder chain
  • Next by Date: error strings in NSPropertyListSerialization
  • Previous by thread: Subverting the first responder chain
  • Next by thread: Re: Subverting the first responder chain
  • Index(es):
    • Date
    • Thread