NSPopUpButton
A control for selecting an item from a list.
Declaration
class NSPopUpButtonOverview
An NSPopUpButton object uses an NSPopUpButtonCell object to implement its user interface.
Note that while a menu is tracking user input, programmatic changes to the menu, such as adding, removing, or changing items on the menu, is not reflected.
Topics
Initializing an NSPopUpButton
Configuring the Cell
Setting the type of menu
Inserting and deleting items
addItem(withTitle:)addItems(withTitles:)insertItem(withTitle:at:)removeAllItems()removeItem(withTitle:)removeItem(at:)
Getting the user’s selection
Setting the current selection
Getting menu items
Getting the indices of menu items
index(of:)indexOfItem(withTag:)indexOfItem(withTitle:)indexOfItem(withRepresentedObject:)indexOfItem(withTarget:andAction:)