menu item is enabled, but still grayed out
问题 I have a menu with several items created in interface builder. It looks fine there and 'enabled' is checked. But when I run application, all menu items are grayed out. I've checked isEnabled , it returns true. Also, menu items created programmatically (with initWithTitle and without interface builder) work just fine. Am I missing something here? I'm really quite new to OSX development (in fact, this is my first day). Thank you 回答1: Remember to set your menu item's target and ensure that said