Re: [IB] - can't assign keyboard shortcut to a menu item
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