<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMatrix/selectAll(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMatrix(im)selectAll:"
  },
  "title" : "selectAll(_:)"
}
-->

# selectAll(_:)

Selects and highlights all cells in the receiver.

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

## Parameters

`sender`

This argument is ignored.

## Discussion

Editable text cells and disabled cells are not selected. The receiver is redisplayed.

If the selection mode is not [`NSMatrix.Mode.listModeMatrix`](/documentation/AppKit/NSMatrix/Mode-swift.enum/listModeMatrix), this method does nothing.

## See Also

[`selectCell(_:)`](/documentation/AppKit/NSControl/selectCell(_:))

Selects the specified cell and redraws the control as needed.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)