Adds a menu item to the end of the receiver.
Original signature is '- (void)addItem:(NSMenuItem *)newItem'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual void AddItem( NSMenuItem newItem )
Public Overridable Sub AddItem ( _ newItem As NSMenuItem _ )
public: virtual void AddItem( NSMenuItem^ newItem )
Parameters
- newItem (NSMenuItem)
- The menu item (an object conforming to the NSMenuItem protocol) to add to the menu.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)