Instance Method

indexOfItemWithTitle:

Returns the index of the item with the specified title.

Declaration

- (NSInteger)indexOfItemWithTitle:(NSString *)title;

Parameters

title

The title of the item you want.

Return Value

The index of the item or -1 if no item with the specified title was found.

See Also

Getting the indices of menu items

- indexOfItem:

Returns the index of the specified menu item.

- indexOfItemWithTag:

Returns the index of the menu item with the specified tag.

- indexOfItemWithRepresentedObject:

Returns the index of the menu item that holds the specified represented object.

- indexOfItemWithTarget:andAction:

Returns the index of the menu item with the specified target and action.