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

NSTabView — Mac OS X 10.0

Synopsis

This NSView subclass provides a way to display pages of views that can be selected by tabs identifying each view. The pages of a tab view are actually instances of the class NSTabViewItem, which is a small class that keeps the tab view, page view, and related information to presenting it in the tab view.

image with no caption

@interface NSTabView : NSView
                                  // Accessor Methods
   - (void)setAllowsTruncatedLabels:(BOOL)allowTruncatedLabels;
   - (BOOL)allowsTruncatedLabels;
   - (void)setDelegate:(id)anObject;
   - (id)delegate;
   - (void)setTabViewType:(NSTabViewType)tabViewType;
   - (NSTabViewType)tabViewType;
   - (void)setFont:(NSFont *)font;
   - (NSFont *)font;
   - (void)setControlSize:(NSControlSize)controlSize;
   - (NSControlSize)controlSize;
   - (void)setDrawsBackground:(BOOL)flag;
   - (BOOL)drawsBackground;
   - (void)setControlTint:(NSControlTint)controlTint;
   - (NSControlTint)controlTint;
                                  // Instance Methods
   - (void)addTabViewItem:(NSTabViewItem *)tabViewItem;
   - (int)indexOfTabViewItemWithIdentifier:(id)identifier;
   - (int)indexOfTabViewItem:(NSTabViewItem *)tabViewItem;
   - (void)insertTabViewItem:(NSTabViewItem *)tabViewItem 
                                 atIndex:(int)index;
   - (NSSize)minimumSize;
   - (int)numberOfTabViewItems;
   - (void)removeTabViewItem:(NSTabViewItem *)tabViewItem;
   - (void)selectFirstTabViewItem:(id)sender;
   - (void)selectLastTabViewItem:(id)sender;

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