---
title: "selectAll(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsmatrix/selectall(_:)"
---

# selectAll(_:)

Selects and highlights all cells in the receiver.

## Declaration

```swift
func selectAll(_ sender: Any?)
```

## Parameters

- `sender`: This argument is ignored.

## Discussion

Discussion Editable text cells and disabled cells are not selected. The receiver is redisplayed. If the selection mode is not NSMatrix.Mode.listModeMatrix, this method does nothing.

## See Also

### Related Documentation

- [selectCell(_:)](appkit/nscontrol/selectcell(_:).md)

### Selecting and Deselecting Cells

- [selectCell(atRow:column:)](appkit/nsmatrix/selectcell(atrow:column:).md)
- [selectCell(withTag:)](appkit/nsmatrix/selectcell(withtag:).md)
- [keyCell](appkit/nsmatrix/keycell.md)
- [setSelectionFrom(_:to:anchor:highlight:)](appkit/nsmatrix/setselectionfrom(_:to:anchor:highlight:).md)
- [deselectAllCells()](appkit/nsmatrix/deselectallcells().md)
- [deselectSelectedCell()](appkit/nsmatrix/deselectselectedcell().md)
