I have subclassed NSMenu
and connected a bunch of NSMenuItem
\'s via Interface Builder. I have tested via the debugger to see that they really get initi
You can solve this problem without subclassing.
If only you need is standard menu + some custom NSMenuItem
s that can be disabled on your control, than you can just:
Add one more menu node - just drag and drop Submenu Menu Item from Object library to your menu.
Add all NSMenuItems you want to manage to this new Menu node.
Open Attributes inspector for your New Menu node, and switch off Auto Enables Items option:
configure any other options of your menu & items.
Now you can write a code like:
@property (weak) IBOutlet NSMenuItem *hidePlateMenuItem;
...
[self.hidePlateMenuItem setEnabled:NO];
and it will works well.