---
title: mode
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsmatrix/mode-swift.property
---

# mode

The selection mode of the receiver.

## Declaration

```swift
var mode: NSMatrix.Mode { get set }
```

## Discussion

Discussion See NSMatrix.Mode for possible values.

## See Also

### Related Documentation

- [init(frame:mode:cellClass:numberOfRows:numberOfColumns:)](appkit/nsmatrix/init(frame:mode:cellclass:numberofrows:numberofcolumns:).md)
- [init(frame:mode:prototype:numberOfRows:numberOfColumns:)](appkit/nsmatrix/init(frame:mode:prototype:numberofrows:numberofcolumns:).md)

### Configuring the Matrix Object

- [allowsEmptySelection](appkit/nsmatrix/allowsemptyselection.md)
- [isSelectionByRect](appkit/nsmatrix/isselectionbyrect.md)
