NSTabView

NSTabView Mac OS X 10.0

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.

figs/cocn_1596.gif

@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;
   - (void)selectNextTabViewItem:(id)sender;
   - (void)selectPreviousTabViewItem:(id)sender;
   - (void)selectTabViewItem:(NSTabViewItem *)tabViewItem;
   - (void)selectTabViewItemAtIndex:(int)index;
   - (void)selectTabViewItemWithIdentifier:(id)identifier;
   - (NSTabViewItem *)selectedTabViewItem;
   - (NSTabViewItem *)tabViewItemAtIndex:(int)index;
   - (NSTabViewItem *)tabViewItemAtPoint:(NSPoint)point;
   - (NSArray *)tabViewItems;
   - (void)takeSelectedTabViewItemFromSender:(id)sender;
   - (NSRect)contentRect;
// Methods Implemented by the Delegate
   - (void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem *)tabViewItem;
   - (BOOL)tabView:(NSTabView *)tabView shouldSelectTabViewItem:(NSTabViewItem *)tabViewItem;
   - (void)tabView:(NSTabView *)tabView willSelectTabViewItem:(NSTabViewItem *)tabViewItem;
   - (void)tabViewDidChangeNumberOfTabViewItems:(NSTabView *)TabView;



    Part II: API Quick Reference
    Chapter 13. Foundation Classes