• 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: Best practice for hidden keyboard shortcuts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best practice for hidden keyboard shortcuts


  • Subject: Re: Best practice for hidden keyboard shortcuts
  • From: David Spooner <email@hidden>
  • Date: Fri, 2 Nov 2007 12:21:30 -0600


You may be able to implement the methods in a higher-level responder; this leaves you with the problem of how to distribute the messages to the appropriate views, but you will also have to do that if you take the -sendEvent: route...


dave

On 2-Nov-07, at 11:38 AM, Philip Dow wrote:

Ah, I failed to mention that the views upon which the key equivalents act are not necessarily in focus, so they won't receive the keyDown events.

-Phil

On Nov 2, 2007, at 9:49 AM, David Spooner wrote:

Phil,

I had written a class of view which implements arbitrary key equivalents (with some exceptions, like cmd-tab) by overriding both -performKeyEquivalent: and -keyDown: -- I don't recall the specifics, but I know that both methods are called in different circumstances...

dave

_______________________________________________

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: Best practice for hidden keyboard shortcuts
      • From: Philip Dow <email@hidden>
References: 
 >Best practice for hidden keyboard shortcuts (From: Philip Dow <email@hidden>)
 >Re: Best practice for hidden keyboard shortcuts (From: David Spooner <email@hidden>)
 >Re: Best practice for hidden keyboard shortcuts (From: Philip Dow <email@hidden>)

  • Prev by Date: Re: dropping incoming DO error
  • Next by Date: NSWindow not being shown on Intel Mac
  • Previous by thread: Re: Best practice for hidden keyboard shortcuts
  • Next by thread: Re: Best practice for hidden keyboard shortcuts
  • Index(es):
    • Date
    • Thread