Defines objects that are used as command items in menus.
- macOS 10.10+
NSMenuItem class includes some private functionality needed to maintain binary compatibility with other components of Cocoa. Because of this fact, you cannot replace the
NSMenuItem class with a different class, but you can subclass it if necessary. (Prior to OS X v10.5,
NSMenuItem conformed to