Instance Method

indexOfTabViewItem:

Returns the index of the specified item in the tab view.

Declaration

- (NSInteger)indexOfTabViewItem:(NSTabViewItem *)tabViewItem;

Parameters

tabViewItem

The tab view item.

Return Value

The zero-based index of tabViewItem, or NSNotFound if the item is not found.

Discussion

The returned index is zero-based.

See Also

Accessing Tabs

- indexOfTabViewItemWithIdentifier:

Returns the index of the item that matches the specified identifier or NSNotFound if the item is not found.

numberOfTabViewItems

The number of items in the tab view’s array of tab view items.

- tabViewItemAtIndex:

Returns the tab view item at index in the tab view’s array of items.

tabViewItems

The tab view’s array of tab view items.