Name

NSOutlineView — Mac OS X 10.0

Synopsis

This subclass of NSTableView implements a user interface component that can display hierarchical data (such as how a filesystem structure is displayed in the Finder’s list view). In an NSOutlineView, users can expand and collapse rows, change the width and order of columns, and edit the contents of the outline. NSOutlineView objects rely on classes that implement the NSOutlineViewDataSource protocol to provide the data to be displayed in the outline.

image with no caption

@interface NSOutlineView : NSTableView
                                  // Accessor Methods
   - (void)setAutosaveExpandedItems:(BOOL)save;
   - (BOOL)autosaveExpandedItems;
   - (void)setAutoresizesOutlineColumn:(BOOL)resize;
   - (BOOL)autoresizesOutlineColumn;
   - (void)setIndentationPerLevel:(float)indentationPerLevel;
   - (float)indentationPerLevel;
   - (void)setDropItem:(id)item 
                                 dropChildIndex:(int)index;
   - (void)setIndentationMarkerFollowsCell:(BOOL)drawInCell;
   - (BOOL)indentationMarkerFollowsCell;
   - (void)setOutlineTableColumn:(NSTableColumn *)outlineTableColumn;
   - (NSTableColumn *)outlineTableColumn;
                                  // Instance Methods
   - (void)collapseItem:(id)item;
   - (void)collapseItem:(id)item 
                                 collapseChildren:(BOOL)collapseChildren;
   - (void)expandItem:(id)item;
   - (void)expandItem:(id)item 
                                 expandChildren:(BOOL)expandChildren;
   - (BOOL)isExpandable:(id)item;
   - (BOOL)isItemExpanded:(id)item;
   - (id)itemAtRow ...

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.