Instance Property

menu

The menu associated with the pop-up button.

Declaration

@property(strong) NSMenu *menu;

Discussion

If another menu was already associated with the pop-up button, this method releases its reference to the old menu.

See Also

Getting menu items

numberOfItems

The number of items in the menu.

itemArray

The array of menu item objects associated with the button.

- itemAtIndex:

Returns the menu item at the specified index.

- itemTitleAtIndex:

Returns the title of the item at the specified index.

itemTitles

An array of strings corresponding to the titles of the items in the menu.

- itemWithTitle:

Returns the menu item with the specified title.

lastItem

The last item in the menu.