Class

NSTabViewItem

An item in a tab view.

Declaration

@interface NSTabViewItem : NSObject

Overview

An NSTabViewItem is a convenient way for presenting information in multiple pages. A tab view is usually distinguished by a row of tabs that give the visual appearance of folder tabs. When the user clicks a tab, the tab view displays a view page provided by your application. A tab view keeps a zero-based array of tab view items, one for each tab in the view.

Topics

Creating a Tab View Item

- initWithIdentifier:

Performs default initialization for the receiver.

Working with Labels

- drawLabel:inRect:

Draws the receiver’s label in tabRect, which is the area between the curved end caps.

label

Sets the label text for the receiver to label.

- sizeOfLabel:

Calculates the size of the receiver’s label.

Checking the Tab Display State

tabState

Returns the current display state of the tab associated with the receiver.

Assigning an Identifier Object

identifier

Sets the receiver’s optional identifier object to identifier.

Setting the Color

color

Deprecated. NSTabViewItems use a color supplied by the current theme.

Assigning a View

view

Sets the view associated with the receiver to view.

Setting the Initial First Responder

initialFirstResponder

Sets the initial first responder for the view associated with the receiver (the view that is displayed when a user clicks on the tab) to view.

Accessing the Parent Tab View

tabView

Returns the parent tab view for the receiver.

Getting and Setting Tooltips

toolTip

Sets the tooltip displayed for the tab view item.

Constants

NSTabState

These constants describe the current display state of a tab:

NSTabViewItemAuxiliaryOpaque

A private data structure used by NSTabViewItem.

Instance Properties

Relationships

Inherits From

Conforms To

See Also

Tab View Interface

NSTabViewController

A container view controller that manages a tab view interface, which organizes multiple pages of content but displays only one page at a time.

NSTabView

A multipage interface that displays one page at a time.