Up
Authors
Fred Kiefer (fredkiefer@gmx.de )
Date: Generated at 2026-02-09
Controller class for arrays
Copyright: (C) (C) 2006, 2020 Free Software Foundation, Inc.
class_NSArrayController
NSObjectController
NSObjectController
NSArrayController
NSArrayController
NSObjectController->NSArrayController
Declared in:
AppKit/NSArrayController.h
Availability: MacOS-X 10.3.0
Description forthcoming.
NSArrayController declares 5 Instance Variables
- (void)
addObject: (id)obj;
Availability: MacOS-X 10.3.0
Adds a single object to the content array. The object
will be inserted into the arranged objects.
- (void)
addObjects: (
NSArray *)obj;
Availability: MacOS-X 10.3.0
Adds multiple objects to the content array. Each
object will be inserted into the arranged objects.
- (BOOL)
addSelectedObjects: (
NSArray *)obj;
Availability: MacOS-X 10.3.0
Adds given objects to the current selection. Returns
whether the operation was successful.
- (BOOL)
addSelectionIndexes: (
NSIndexSet *)idx;
Availability: MacOS-X 10.3.0
Adds index positions to the current selection. Returns
whether the operation was successful.
- (BOOL)
alwaysUsesMultipleValuesMarker ;
Availability: MacOS-X 10.4.0
Returns whether multiple values marker is always
used.
- (
NSArray *)
arrangeObjects: (
NSArray *)obj;
Availability: MacOS-X 10.3.0
Returns a newly arranged version of the given
objects.
- (id)
arrangedObjects ;
Availability: MacOS-X 10.3.0
Returns the currently arranged objects.
- (BOOL)
automaticallyRearrangesObjects ;
Availability: MacOS-X 10.5.0
Returns whether the controller automatically
rearranges its objects.
- (BOOL)
avoidsEmptySelection ;
Availability: MacOS-X 10.3.0
Returns whether empty selection is avoided.
- (BOOL)
canInsert ;
Availability: MacOS-X 10.3.0
Returns whether inserting objects is currently
allowed.
- (BOOL)
canSelectNext ;
Availability: MacOS-X 10.3.0
Returns whether a next item is available to select.
- (BOOL)
canSelectPrevious ;
Availability: MacOS-X 10.3.0
Returns whether a previous item is available to
select.
- (BOOL)
clearsFilterPredicateOnInsertion ;
Availability: MacOS-X 10.4.0
Returns whether the filter predicate is cleared on
insertion.
- (
NSPredicate *)
filterPredicate ;
Availability: MacOS-X 10.4.0
Returns the current filter predicate.
- (void)
insert: (id)sender;
Availability: MacOS-X 10.3.0
Triggers the insertion operation from a
sender .
- (void)
insertObject: (id)obj
atArrangedObjectIndex: (
NSUInteger )idx;
Availability: MacOS-X 10.3.0
Inserts an object at a specific index in the
arranged objects.
- (void)
insertObjects: (
NSArray *)obj
atArrangedObjectIndexes: (
NSIndexSet *)idx;
Availability: MacOS-X 10.3.0
Inserts multiple objects at the specified indexes
in the arranged objects.
- (BOOL)
preservesSelection ;
Availability: MacOS-X 10.3.0
Returns whether the selection is preserved across
rearrangements.
- (void)
rearrangeObjects ;
Availability: MacOS-X 10.3.0
Rearranges the content based on current sort
descriptors and filters.
- (void)
removeObject: (id)obj;
Availability: MacOS-X 10.3.0
Removes a single object from the content array.
- (void)
removeObjectAtArrangedObjectIndex: (
NSUInteger )idx;
Availability: MacOS-X 10.3.0
Removes the object at the specified index from the
arranged objects.
- (void)
removeObjects: (
NSArray *)obj;
Availability: MacOS-X 10.3.0
Removes multiple objects from the content array.
- (void)
removeObjectsAtArrangedObjectIndexes: (
NSIndexSet *)idx;
Availability: MacOS-X 10.3.0
Removes multiple objects at the specified indexes
from the arranged objects.
- (BOOL)
removeSelectedObjects: (
NSArray *)obj;
Availability: MacOS-X 10.3.0
Removes the specified objects from the current
selection. Returns whether the operation was
successful.
- (BOOL)
removeSelectionIndexes: (
NSIndexSet *)idx;
Availability: MacOS-X 10.3.0
Removes the specified index positions from the
current selection. Returns whether the operation
was successful.
- (void)
selectNext: (id)sender;
Availability: MacOS-X 10.3.0
Moves the selection to the next object.
- (void)
selectPrevious: (id)sender;
Availability: MacOS-X 10.3.0
Moves the selection to the previous object.
- (
NSArray *)
selectedObjects ;
Availability: MacOS-X 10.3.0
Returns an array of currently selected objects.
- (
NSUInteger )
selectionIndex ;
Availability: MacOS-X 10.3.0
Returns the index of the current selection.
- (
NSIndexSet *)
selectionIndexes ;
Availability: MacOS-X 10.3.0
Returns the current selection as an index set.
- (BOOL)
selectsInsertedObjects ;
Availability: MacOS-X 10.3.0
Returns whether newly inserted objects are
selected.
- (void)
setAlwaysUsesMultipleValuesMarker: (BOOL)flag;
Availability: MacOS-X 10.4.0
Sets whether the controller should always use the
multiple values marker.
- (void)
setAutomaticallyRearrangesObjects: (BOOL)flag;
Availability: MacOS-X 10.5.0
Sets whether the controller should automatically
rearrange its objects.
- (void)
setAvoidsEmptySelection: (BOOL)flag;
Availability: MacOS-X 10.3.0
Sets whether the controller avoids empty selection.
- (void)
setClearsFilterPredicateOnInsertion: (BOOL)flag;
Availability: MacOS-X 10.4.0
Sets whether the filter predicate should be cleared
when inserting objects.
- (void)
setFilterPredicate: (
NSPredicate *)filterPredicate;
Availability: MacOS-X 10.4.0
Sets the filter predicate used to filter content.
- (void)
setPreservesSelection: (BOOL)flag;
Availability: MacOS-X 10.3.0
Sets whether to preserve the selection across
rearrangements.
- (BOOL)
setSelectedObjects: (
NSArray *)obj;
Availability: MacOS-X 10.3.0
Replaces the current selection with the given
objects. Returns whether the operation was
successful.
- (BOOL)
setSelectionIndex: (
NSUInteger )idx;
Availability: MacOS-X 10.3.0
Sets the selection to a specific index. Returns
whether the operation was successful.
- (BOOL)
setSelectionIndexes: (
NSIndexSet *)idx;
Availability: MacOS-X 10.3.0
Sets the selection to the specified indexes. Returns
whether the operation was successful.
- (void)
setSelectsInsertedObjects: (BOOL)flag;
Availability: MacOS-X 10.3.0
Sets whether newly inserted objects should be
selected.
- (void)
setSortDescriptors: (
NSArray *)desc;
Availability: MacOS-X 10.3.0
Sets the sort descriptors used for rearranging
objects.
- (
NSArray *)
sortDescriptors ;
Availability: MacOS-X 10.3.0
Returns the current sort descriptors.
Instance Variables for NSArrayController Class
@protected NSArray*
_arranged_objects ;
Availability: MacOS-X 10.3.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.
@protected NSPredicate*
_filter_predicate ;
Availability: MacOS-X 10.3.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.
@protected NSIndexSet*
_selection_indexes ;
Availability: MacOS-X 10.3.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.
@protected NSArray*
_sort_descriptors ;
Availability: MacOS-X 10.3.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.
@protected struct GSArrayControllerFlagsType
struct GSArrayControllerFlagsType ;
Availability: MacOS-X 10.3.0
Description forthcoming.
Up