---
title: allowsEmptySelection
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsmatrix/allowsemptyselection
---

# allowsEmptySelection

A Boolean that indicates whether a radio-mode matrix supports an empty selection.

## Declaration

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

## Discussion

Discussion When the value of this property is true, the matrix allows one or zero cells to be selected. When the value of this property is true, the matrix allows one and only one cell (not zero cells) to be selected. This setting has effect only in the NSRadioModeMatrix selection mode.

## See Also

### Configuring the Matrix Object

- [mode](appkit/nsmatrix/mode-swift.property.md)
- [isSelectionByRect](appkit/nsmatrix/isselectionbyrect.md)
