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

NSBrowser — Mac OS X 10.0

Synopsis

This NSControl subclass represents an interface widget that displays hierarchical data in a series of columns, much like a Column View in the Finder. If the data is not hierarchical, then NSBrowser displays the data as a list. Data is provided to a browser by its delegate object.

image with no caption

@interface NSBrowser : NSControl
                                  // Accessor Methods
   - (void)setTitle:(NSString *)aString 
                                 ofColumn:(int)column;
   - (void)setDoubleAction:(SEL)aSelector;
   - (SEL)doubleAction;
   - (void)setMatrixClass:(Class)factoryId;
   - (Class)matrixClass;
   - (void)setPathSeparator:(NSString *)newString;
   - (NSString *)pathSeparator;
   - (void)setCellClass:(Class)factoryId;
   - (void)setCellPrototype:(NSCell *)aCell;
   - (id)cellPrototype;
   - (void)setDelegate:(id)anObject;
   - (id)delegate;
   - (void)setReusesColumns:(BOOL)flag;
   - (BOOL)reusesColumns;
   - (void)setHasHorizontalScroller:(BOOL)flag;
   - (BOOL)hasHorizontalScroller;
   - (void)setSeparatesColumns:(BOOL)flag;
   - (BOOL)separatesColumns;
   - (void)setTitled:(BOOL)flag;
   - (void)setMinColumnWidth:(float)columnWidth;
   - (float)minColumnWidth;
   - (void)setMaxVisibleColumns:(int)columnCount;
   - (int)maxVisibleColumns;
   - (void)setSendsActionOnArrowKeys:(BOOL)flag;
   - (BOOL)sendsActionOnArrowKeys;
   - (void)setAllowsMultipleSelection:(BOOL)flag;
   - (BOOL)allowsMultipleSelection;
   - (void)setAllowsBranchSelection ...

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