O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSTabViewItem — Mac OS X 10.0

Synopsis

This class represents a single tabbed pane within a tab view object. NSTabView objects maintain an array of NSTabViewItem objects for each of its tabs. Associated with each tab view item is an identifier, a label that is drawn in the tab itself, and a view that contains the contents of the tab view item. For most simple uses of tab views, you won’t have to interact with the NSTabView or NSTabViewItem APIs directly, as Interface Builder is capable of fully configuring a tab view.

image with no caption

@interface NSTabViewItem : NSObject <NSCoding>
                                  // Initializers
   - (id)initWithIdentifier:(id)identifier;
   - (id)initialFirstResponder;
                                  // Accessor Methods
   - (void)setColor:(NSColor *)color;
   - (NSColor *)color;
   - (void)setLabel:(NSString *)label;
   - (NSString *)label;
   - (void)setIdentifier:(id)identifier;
   - (id)identifier;
   - (void)setInitialFirstResponder:(NSView *)view;
   - (void)setView:(NSView *)view;
   - (id)view;
                                  // Instance Methods
   - (NSSize)sizeOfLabel:(BOOL)computeMin;
   - (NSTabState)tabState;
   - (NSTabView *)tabView;
                                  // Methods Implementing NSCoding
   - (void)encodeWithCoder:(NSCoder *)aCoder;
   - (id)initWithCoder:(NSCoder *)aDecoder;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required