---
title: selectedObjects
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstreecontroller/selectedobjects
---

# selectedObjects

An array containing the currently selected objects in the tree controller’s content.

## Declaration

```swift
var selectedObjects: [Any] { get }
```

## Discussion

Discussion 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)
- [selectionIndexPaths](appkit/nstreecontroller/selectionindexpaths.md)
- [selectedNodes](appkit/nstreecontroller/selectednodes.md)
