---
title: selectedNodes
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstreecontroller/selectednodes
---

# selectedNodes

An array containing the tree controller’s selected tree nodes.

## Declaration

```swift
var selectedNodes: [NSTreeNode] { get }
```

## See Also

### Getting the current selection

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