Instance Property

itemArray

The array of menu item objects associated with the button.

Declaration

@property(readonly, copy) NSArray<NSMenuItem *> *itemArray;

Discussion

This property contains an array of NSMenuItem objects representing the items in the menu. Usually, you access menu items using the methods and properties of this class rather than accessing the items directly.

See Also

Getting menu items

menu

The menu associated with the pop-up button.

numberOfItems

The number of items in the menu.

- 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.