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;

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.