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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com