• 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
Getting a NSMenuItem to respond to two different key equivalents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting a NSMenuItem to respond to two different key equivalents


  • Subject: Getting a NSMenuItem to respond to two different key equivalents
  • From: Adam Knight <email@hidden>
  • Date: Thu, 11 Oct 2007 17:13:41 -0500

Notice how both Mail and Safari let you use cmd-+ and cmd-= to make text larger, but the menu item just shows cmd-+?

Yeah, how do I do that?

The NIBs are *not* using the nifty alternate item feature because you can't do that with only shift, it seems (can't even check it off in IB). I tried mangling in validateMenuItem but that's not called unless the menu is being displayed, it seems. So where can I flip the keyEquivalent as this happens, if that's what's happening (the simplest solution).


Adam Knight codepoetry - http://www.codepoetry.net/products/


_______________________________________________

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: Getting a NSMenuItem to respond to two different key equivalents
      • From: Uli Kusterer <email@hidden>
    • Re: Getting a NSMenuItem to respond to two different key equivalents
      • From: Benjamin Stiglitz <email@hidden>
  • Prev by Date: Re: documentation
  • Next by Date: Re: Getting a NSMenuItem to respond to two different key equivalents
  • Previous by thread: Re: documentation
  • Next by thread: Re: Getting a NSMenuItem to respond to two different key equivalents
  • Index(es):
    • Date
    • Thread