Cannot seem to setEnabled:NO on NSMenuItem

后端 未结 8 1483
故里飘歌
故里飘歌 2021-02-12 10:51

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

8条回答
  •  难免孤独
    2021-02-12 11:14

    Adding to the response of itsdavyh, if the menu item is located inside one or more submenus you only have to uncheck the 'Auto enables items'-property on the submenu of the menu item and not on any other parentmenus.

提交回复
热议问题