---
title: selection
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsobjectcontroller/selection
---

# selection

A proxy object representing the receiver’s selection.

## Declaration

```swift
var selection: Any { get }
```

## Discussion

Discussion This object is fully key-value coding compliant, but note that it is a proxy and so does not provide the full range of functionality that might be available in the source object.

## See Also

### Obtaining selections

- [selectedObjects](appkit/nsobjectcontroller/selectedobjects.md)
