NSPopUpButtonCell
The NSPopUpButtonCell class defines the visual appearance of pop-up buttons that display pop-up or pull-down menus. Pop-up menus present the user with a set of choices, much the way radio buttons do, but using much less space. Pull-down menus also provide a set of choices but present the information in a slightly different way, usually to provide a set of commands from which the user can choose.
Declaration
class NSPopUpButtonCellOverview
The NSPopUpButtonCell class implements the user interface for the NSPopUpButton class.
Changes made to a menu (such as adding, removing, or changing the items) are not apparent while the menu is being displayed or interacted with.
Topics
Initialization
Accessing menu attributes
Adding and removing items
addItem(withTitle:)addItems(withTitles:)insertItem(withTitle:at:)removeItem(withTitle:)removeItem(at:)removeAllItems()
Accessing the items
itemArraynumberOfItemsindex(of:)indexOfItem(withTitle:)indexOfItem(withTag:)indexOfItem(withRepresentedObject:)indexOfItem(withTarget:andAction:)item(at:)item(withTitle:)lastItem
Dealing with selection
select(_:)selectItem(at:)selectItem(withTag:)selectItem(withTitle:)setTitle(_:)selectedItemindexOfSelectedItemsynchronizeTitleAndSelectedItem()