Instance Method

itemWithTitle:

Returns the menu item with the specified title.

Declaration

- (NSMenuItem *)itemWithTitle:(NSString *)title;

Parameters

title

The title of the menu item you want.

Return Value

The menu item, or nil if no item with the specified title exists in the menu.

See Also

Getting menu items

menu

The menu associated with the pop-up button.

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.

lastItem

The last item in the menu.