---
title: selectionIndexPaths
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstreecontroller/selectionindexpaths
---

# selectionIndexPaths

An array containing the index paths of the currently selected objects.

## Declaration

```swift
var selectionIndexPaths: [IndexPath] { get }
```

## Discussion

Discussion This property contains an array containing NSIndexPath objects for each of the selected objects in the tree controller’s content. This property is observable using key-value observing.

## See Also

### Getting the current selection

- [setSelectionIndexPath(_:)](appkit/nstreecontroller/setselectionindexpath(_:).md)
- [selectionIndexPath](appkit/nstreecontroller/selectionindexpath.md)
- [setSelectionIndexPaths(_:)](appkit/nstreecontroller/setselectionindexpaths(_:).md)
- [selectedObjects](appkit/nstreecontroller/selectedobjects.md)
- [selectedNodes](appkit/nstreecontroller/selectednodes.md)
