Up

# NSTreeController class documentation

### Authors

Generated by root

# Software documentation for the NSTreeController class

## NSTreeController : NSObjectController

> Declared in:
>   AppKit/NSTreeController.h

> Conforms to:
>   NSCoding
>   NSCopying

Availability: MacOS-X 10.4.0
Description forthcoming.

Instance Variables
Method summary

- -add:
- -addChild:
- -addSelectionIndexPaths:
- -alwaysUsesMultipleValuesMarker
- -arrangedObjects
- -avoidsEmptySelection
- -canAddChid
- -canInsert
- -canInsertChild
- -childrenKeyPath
- -childrenKeyPathForNode:
- -content
- -countKeyPath
- -countKeyPathForNode:
- -insert:
- -insertChild:
- -insertObject:atArrangedObjectIndexPath:
- -insertObjects:atArrangedObjectIndexPaths:
- -leafKeyPath
- -leafKeyPathForNode:
- -moveNode:toIndexPath:
- -moveNodes:toIndexPath:
- -preservesSelection
- -rearrangeObjects
- -remove:
- -removeObjectAtArrangedObjectIndexPath:
- -removeObjectsAtArrangedObjectIndexPaths:
- -removeSelectionIndexPaths:
- -selectedNodes
- -selectedObjects
- -selectionIndexPath
- -selectionIndexPaths
- -selectsInsertedObjects
- -setAlwaysUsesMultipleValuesMarker:
- -setAvoidsEmptySelection:
- -setChildrenKeyPath:
- -setContent:
- -setCountKeyPath:
- -setLeafPathKey:
- -setPreservesSelection:
- -setSelectionIndexPath:
- -setSelectionIndexPaths:
- -setSelectsInsertedObjects:
- -setSortDescriptors:
- -sortDescriptors

### add:

- (void) add: (id)sender;
Availability: MacOS-X 10.4.0
Description forthcoming.

### addChild:

- (void) addChild: (id)sender;
Availability: MacOS-X 10.4.0
Description forthcoming.

### addSelectionIndexPaths:

- (BOOL) addSelectionIndexPaths: (NSArray*)indexPaths;
Availability: MacOS-X 10.4.0
Description forthcoming.

### alwaysUsesMultipleValuesMarker

- (BOOL) alwaysUsesMultipleValuesMarker;
Availability: MacOS-X 10.4.0
Description forthcoming.

### arrangedObjects

- (id) arrangedObjects;
Availability: MacOS-X 10.4.0
Description forthcoming.

### avoidsEmptySelection

- (BOOL) avoidsEmptySelection;
Availability: MacOS-X 10.4.0
Description forthcoming.

### canAddChid

- (BOOL) canAddChid;
Availability: MacOS-X 10.4.0
Description forthcoming.

### canInsert

- (BOOL) canInsert;
Availability: MacOS-X 10.4.0
Description forthcoming.

### canInsertChild

- (BOOL) canInsertChild;
Availability: MacOS-X 10.4.0
Description forthcoming.

### childrenKeyPath

- (NSString*) childrenKeyPath;
Availability: MacOS-X 10.4.0
Description forthcoming.

### childrenKeyPathForNode:

- (NSString*) childrenKeyPathForNode: (NSTreeNode*)node;
Availability: MacOS-X 10.5.0
Description forthcoming.

### content

- (id) content;
Availability: MacOS-X 10.4.0
Description forthcoming.

### countKeyPath

- (NSString*) countKeyPath;
Availability: MacOS-X 10.4.0
Description forthcoming.

### countKeyPathForNode:

- (NSString*) countKeyPathForNode: (NSTreeNode*)node;
Availability: MacOS-X 10.5.0
Description forthcoming.

### insert:

- (void) insert: (id)sender;
Availability: MacOS-X 10.4.0
Description forthcoming.

### insertChild:

- (void) insertChild: (id)sender;
Availability: MacOS-X 10.4.0
Description forthcoming.

### insertObject: atArrangedObjectIndexPath:

- (void) insertObject: (id)object atArrangedObjectIndexPath: (NSIndexPath*)indexPath;
Availability: MacOS-X 10.4.0
Description forthcoming.

### insertObjects: atArrangedObjectIndexPaths:

- (void) insertObjects: (NSArray*)objects atArrangedObjectIndexPaths: (NSArray*)indexPaths;
Availability: MacOS-X 10.4.0
Description forthcoming.

### leafKeyPath

- (NSString*) leafKeyPath;
Availability: MacOS-X 10.4.0
Description forthcoming.

### leafKeyPathForNode:

- (NSString*) leafKeyPathForNode: (NSTreeNode*)node;
Availability: MacOS-X 10.5.0
Description forthcoming.

### moveNode: toIndexPath:

- (void) moveNode: (NSTreeNode*)node toIndexPath: (NSIndexPath*)indexPath;
Availability: MacOS-X 10.5.0
Description forthcoming.

### moveNodes: toIndexPath:

- (void) moveNodes: (NSArray*)nodes toIndexPath: (NSIndexPath*)startingIndexPath;
Availability: MacOS-X 10.5.0
Description forthcoming.

### preservesSelection

- (BOOL) preservesSelection;
Availability: MacOS-X 10.4.0
Description forthcoming.

### rearrangeObjects

- (void) rearrangeObjects;
Availability: MacOS-X 10.4.0
Description forthcoming.

### remove:

- (void) remove: (id)sender;
Availability: MacOS-X 10.4.0
Description forthcoming.

### removeObjectAtArrangedObjectIndexPath:

- (void) removeObjectAtArrangedObjectIndexPath: (NSIndexPath*)indexPath;
Availability: MacOS-X 10.4.0
Description forthcoming.

### removeObjectsAtArrangedObjectIndexPaths:

- (void) removeObjectsAtArrangedObjectIndexPaths: (NSArray*)indexPaths;
Availability: MacOS-X 10.4.0
Description forthcoming.

### removeSelectionIndexPaths:

- (void) removeSelectionIndexPaths: (NSArray*)indexPaths;
Availability: MacOS-X 10.4.0
Description forthcoming.

### selectedNodes

- (NSArray*) selectedNodes;
Availability: MacOS-X 10.5.0
Description forthcoming.

### selectedObjects

- (NSArray*) selectedObjects;
Availability: MacOS-X 10.4.0
Description forthcoming.

### selectionIndexPath

- (NSIndexPath*) selectionIndexPath;
Availability: MacOS-X 10.4.0
Description forthcoming.

### selectionIndexPaths

- (NSArray*) selectionIndexPaths;
Availability: MacOS-X 10.4.0
Description forthcoming.

### selectsInsertedObjects

- (BOOL) selectsInsertedObjects;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setAlwaysUsesMultipleValuesMarker:

- (void) setAlwaysUsesMultipleValuesMarker: (BOOL)flag;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setAvoidsEmptySelection:

- (void) setAvoidsEmptySelection: (BOOL)flag;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setChildrenKeyPath:

- (void) setChildrenKeyPath: (NSString*)path;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setContent:

- (void) setContent: (id)content;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setCountKeyPath:

- (void) setCountKeyPath: (NSString*)path;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setLeafPathKey:

- (void) setLeafPathKey: (NSString*)key;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setPreservesSelection:

- (void) setPreservesSelection: (BOOL)flag;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setSelectionIndexPath:

- (BOOL) setSelectionIndexPath: (NSIndexPath*)indexPath;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setSelectionIndexPaths:

- (BOOL) setSelectionIndexPaths: (NSArray*)indexPaths;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setSelectsInsertedObjects:

- (void) setSelectsInsertedObjects: (BOOL)flag;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setSortDescriptors:

- (void) setSortDescriptors: (NSArray*)descriptors;
Availability: MacOS-X 10.4.0
Description forthcoming.

### sortDescriptors

- (NSArray*) sortDescriptors;
Availability: MacOS-X 10.4.0
Description forthcoming.

## Instance Variables for NSTreeController Class

### _alwaysUsesMultipleValuesMarker

@protected BOOL _alwaysUsesMultipleValuesMarker;
Availability: MacOS-X 10.4.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _avoidsEmptySelection

@protected BOOL _avoidsEmptySelection;
Availability: MacOS-X 10.4.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _childrenKeyPath

@protected NSString* _childrenKeyPath;
Availability: MacOS-X 10.4.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _countKeyPath

@protected NSString* _countKeyPath;
Availability: MacOS-X 10.4.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _leafKeyPath

@protected NSString* _leafKeyPath;
Availability: MacOS-X 10.4.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _preservesSelection

@protected BOOL _preservesSelection;
Availability: MacOS-X 10.4.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _selectsInsertedObjects

@protected BOOL _selectsInsertedObjects;
Availability: MacOS-X 10.4.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _sortDescriptors

@protected NSArray* _sortDescriptors;
Availability: MacOS-X 10.4.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

Up