---
title: avoidsEmptySelection
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsarraycontroller/avoidsemptyselection
---

# avoidsEmptySelection

A Boolean value that indicates whether the receiver requires that the content array attempt to maintain a selection

## Declaration

```swift
var avoidsEmptySelection: Bool { get set }
```

## Discussion

Discussion The default is true. This property is observable using key-value observing.

## See Also

### Selection Attributes

- [preservesSelection](appkit/nsarraycontroller/preservesselection.md)
- [alwaysUsesMultipleValuesMarker](appkit/nsarraycontroller/alwaysusesmultiplevaluesmarker.md)
