Instance Method

tabView:shouldSelectTabViewItem:

Asks the tab view controller if the specified tab should be selected.

Declaration

- (BOOL)tabView:(NSTabView *)tabView shouldSelectTabViewItem:(NSTabViewItem *)tabViewItem;

Parameters

tabView

The tab view object making the request.

tabViewItem

The tab view item to select.

Return Value

YES if the tab should be selected or NO if it should not be selected.

Discussion

This method is a delegate method called by the NSTabView object when changes occur. Use it to dynamically determine whether a tab should be selected.

If you override this method, you must call super at some point in your implementation.

See Also

Responding to Tab View Events

- viewDidLoad

Called after the view controller’s view has been loaded into memory.

- tabView:willSelectTabViewItem:

Informs the tab view controller that the specified tab is about to be selected.

- tabView:didSelectTabViewItem:

Informs the tab view controller that the specified tab was selected.