diff --git a/AppKit/CPArrayController.j b/AppKit/CPArrayController.j index 359876612..764096a0b 100644 --- a/AppKit/CPArrayController.j +++ b/AppKit/CPArrayController.j @@ -584,7 +584,7 @@ */ - (BOOL)__setSelectionIndexes:(CPIndexSet)indexes { - [self __setSelectionIndexes:indexes avoidEmpty:_avoidsEmptySelection]; + return [self __setSelectionIndexes:indexes avoidEmpty:_avoidsEmptySelection]; } - (BOOL)__setSelectionIndexes:(CPIndexSet)indexes avoidEmpty:(BOOL)avoidEmpty @@ -920,6 +920,15 @@ [self removeObjectsAtArrangedObjectIndexes:_selectionIndexes]; } +/*! + Removes the object at the specified index in the controller's arranged objects from the content array. + @param int index - index of the object to remove. +*/ +- (void)removeObjectAtArrangedObjectIndex:(int)index +{ + [self removeObjectsAtArrangedObjectIndexes:[CPIndexSet indexSetWithIndex:index]]; +} + /*! Removes the objects at the specified indexes in the controller's arranged objects from the content array. @param CPIndexSet indexes - indexes of the objects to remove.