MonobjcMonobjc Documented Class Library
AddItemsWithTitles Method (itemTitles)
NamespacesMonobjc.AppKitNSPopUpButtonAddItemsWithTitles(NSArray)

Adds multiple items to the end of the menu.

Original signature is '- (void)addItemsWithTitles:(NSArray *)itemTitles'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void AddItemsWithTitles(
	NSArray itemTitles
)
Public Overridable Sub AddItemsWithTitles ( _
	itemTitles As NSArray _
)
public:
virtual void AddItemsWithTitles(
	NSArray^ itemTitles
)
Parameters
itemTitles (NSArray)
An array of NSString objects containing the titles of the items you want to add. Each string in the array should be unique. 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)