---
title: "removeSelectionIndexes(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsarraycontroller/removeselectionindexes(_:)"
---

# removeSelectionIndexes(_:)

Removes the object as the specified indexes from the receiver’s current selection.

## Declaration

```swift
func removeSelectionIndexes(_ indexes: IndexSet) -> Bool
```

## Return Value

Return Value true if the selection was changed.

## Discussion

Discussion Attempting to change the selection may cause a commitEditing() message which fails, thus denying the selection change.

## See Also

### Managing selections

- [selectionIndex](appkit/nsarraycontroller/selectionindex.md)
- [setSelectionIndex(_:)](appkit/nsarraycontroller/setselectionindex(_:).md)
- [selectsInsertedObjects](appkit/nsarraycontroller/selectsinsertedobjects.md)
- [setSelectionIndexes(_:)](appkit/nsarraycontroller/setselectionindexes(_:).md)
- [selectionIndexes](appkit/nsarraycontroller/selectionindexes.md)
- [addSelectionIndexes(_:)](appkit/nsarraycontroller/addselectionindexes(_:).md)
- [setSelectedObjects(_:)](appkit/nsarraycontroller/setselectedobjects(_:).md)
- [selectedObjects](appkit/nsarraycontroller/selectedobjects.md)
- [addSelectedObjects(_:)](appkit/nsarraycontroller/addselectedobjects(_:).md)
- [removeSelectedObjects(_:)](appkit/nsarraycontroller/removeselectedobjects(_:).md)
- [selectNext(_:)](appkit/nsarraycontroller/selectnext(_:).md)
- [canSelectNext](appkit/nsarraycontroller/canselectnext.md)
- [selectPrevious(_:)](appkit/nsarraycontroller/selectprevious(_:).md)
- [canSelectPrevious](appkit/nsarraycontroller/canselectprevious.md)
