MonobjcMonobjc Documented Class Library
AddItemWithTitle Method (title)
NamespacesMonobjc.AppKitNSPopUpButtonAddItemWithTitle(NSString)

Adds an item with the specified title to the end of the menu.

Original signature is '- (void)addItemWithTitle:(NSString *)title'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void AddItemWithTitle(
	NSString title
)
Public Overridable Sub AddItemWithTitle ( _
	title As NSString _
)
public:
virtual void AddItemWithTitle(
	NSString^ title
)
Parameters
title (NSString)
The title of the menu-item entry. If an item with the same title already exists in the menu, the existing item is removed and the new one is added.
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)