Instance Method

itemWithTag:

Returns the first menu item in the menu with the specified tag.

Declaration

- (NSMenuItem *)itemWithTag:(NSInteger)tag;

Parameters

aTag

A numeric tag associated with a menu item.

Return Value

The found menu item (an object conforming to the NSMenuItem protocol) or nil if the object couldn't be found.

See Also

Finding Menu Items

- itemWithTitle:

Returns the first menu item in the menu with a specified title.

- itemAtIndex:

Returns the menu item at a specific location of the menu.

numberOfItems

The number of menu items in the menu, including separator items.

itemArray

An array containing the menu items in the menu.