• 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
assigning the same keyboard command to more than one menu item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

assigning the same keyboard command to more than one menu item


  • Subject: assigning the same keyboard command to more than one menu item
  • From: "Josh Aas" <email@hidden>
  • Date: Wed, 20 Dec 2006 00:21:15 -0600

I need to be able to assign the same key equivalent and modifiers to
multiple menu items in my Cocoa application's menu bar. I know that doesn't
seem like good UI design, but in this case I need to be able to do it.
Anyone know how?

Right now, if I assign the same key equiv and modifiers to two different
menu items, one of them will not display the keyboard command. Which one
displays it seems to depend on the order in which the key commands were
assigned. If I could assign the same key/modifiers to two different menu
items, I don't care which one gets activated when the key command is used,
because they will always have the same action/target.

(Carbon seems to be able to do this just fine, but Cocoa doesn't want to)

Thanks,
Josh Aas
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: assigning the same keyboard command to more than one menu item
      • From: Ronny Reichmann <email@hidden>
    • Re: assigning the same keyboard command to more than one menu item
      • From: Ronny Reichmann <email@hidden>
  • Prev by Date: Re: Delegates -- WHAT is delegated?
  • Next by Date: Re: passing data to threads
  • Previous by thread: Re: passing data to threads
  • Next by thread: Re: assigning the same keyboard command to more than one menu item
  • Index(es):
    • Date
    • Thread