• 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:31:21 +0000

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

>  The view doesn't immediately have a way of knowing whether it should handle
> a key like "space" or not. The app design is predicated around the idea that
> keyboard shortcuts will be consumed before they reach the view, which I
> think is reasonable, and matches reality for standard command keys.

I'm not sure you can make this assumption. In order to be a good
responder chain citizen, your view really needs to know whether it
should handle a given event (it may of course need to ask its own
delegates whether they wish to handle the event before it can answer
this).  However, it's not at all clear to me why your custom view
should get a go at the space bar before your menu, so perhaps someone
else knows how to fix this.

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

References: 
 >Subverting the first responder chain (From: John Stiles <email@hidden>)
 >Re: Subverting the first responder chain (From: "Hamish Allan" <email@hidden>)
 >Re: Subverting the first responder chain (From: John Stiles <email@hidden>)

  • Prev by Date: CGContextReplacePathWithStrokedPath problem?
  • Next by Date: Re: Static in Subclasses
  • Previous by thread: Re: Subverting the first responder chain
  • Next by thread: Re: Subverting the first responder chain
  • Index(es):
    • Date
    • Thread