Instance Method

selectItemAtIndex:

Selects the item in the menu at the specified index.

Declaration

- (void)selectItemAtIndex:(NSInteger)index;

Parameters

index

The index of the item you want to select, or -1 you want to deselect all menu items.

See Also

Setting the current selection

- selectItem:

Selects the specified menu item.

- selectItemWithTag:

Selects the menu item with the specified tag.

- selectItemWithTitle:

Selects the item with the specified title.

- setObjectValue:

Selects the item at a specific index using an object value.