• 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: [IB] - can't assign keyboard shortcut to a menu item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [IB] - can't assign keyboard shortcut to a menu item


  • Subject: Re: [IB] - can't assign keyboard shortcut to a menu item
  • From: Graham Cox <email@hidden>
  • Date: Tue, 4 Aug 2009 10:56:51 +1000


On 04/08/2009, at 3:52 AM, Alexander Bokovikov wrote:

I'm sorry, but as I can see now, main menu shortcuts are also gray... I can delete them but I can't assign them. Why? I've created controller actions and have connected actions of menu items with the controller.


Just the keyboard items are grey, but the menu items are not? Or all grey?

Check out NSMenuItemValidation (-validateMenuItem:) -most apps will want to explicitly validate their menu items which controls whether they are grey or not. The default of validating using - respondsToSelector: is usually too simplistic for real apps.

--Graham


_______________________________________________

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: [IB] - can't assign keyboard shortcut to a menu item
      • From: Alexander Bokovikov <email@hidden>
References: 
 >[IB] - can't assign keyboard shortcut to a menu item (From: Alexander Bokovikov <email@hidden>)
 >Re: [IB] - can't assign keyboard shortcut to a menu item (From: Graham Cox <email@hidden>)
 >Re: [IB] - can't assign keyboard shortcut to a menu item (From: Alexander Bokovikov <email@hidden>)
 >Re: [IB] - can't assign keyboard shortcut to a menu item (From: Graham Cox <email@hidden>)
 >Re: [IB] - can't assign keyboard shortcut to a menu item (From: Alastair Houghton <email@hidden>)
 >Re: [IB] - can't assign keyboard shortcut to a menu item (From: Alexander Bokovikov <email@hidden>)

  • Prev by Date: Re: Avoiding KVO in dealloc?
  • Next by Date: Re: Avoiding KVO in dealloc?
  • Previous by thread: Re: [IB] - can't assign keyboard shortcut to a menu item
  • Next by thread: Re: [IB] - can't assign keyboard shortcut to a menu item
  • Index(es):
    • Date
    • Thread