NSArrayController
A bindings-compatible controller that manages a collection of objects.
Declaration
class NSArrayControllerOverview
Typically the collection that an NSArrayController manages is an array, however, if the controller manages a relationship of a managed object (see NSManagedObject) the collection may be a set. NSArrayController provides selection management and sorting capabilities.
Topics
Managing Sort Descriptors
Arranging Objects
Managing Content
Selection Attributes
Managing selections
selectionIndexsetSelectionIndex(_:)selectsInsertedObjectssetSelectionIndexes(_:)selectionIndexesaddSelectionIndexes(_:)removeSelectionIndexes(_:)setSelectedObjects(_:)selectedObjectsaddSelectedObjects(_:)removeSelectedObjects(_:)selectNext(_:)canSelectNextselectPrevious(_:)canSelectPrevious
Inserting
Adding and Removing Objects
addObject(_:)add(contentsOf:)insert(_:atArrangedObjectIndex:)insert(contentsOf:atArrangedObjectIndexes:)remove(atArrangedObjectIndex:)remove(atArrangedObjectIndexes:)remove(_:)removeObject(_:)remove(contentsOf:)