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

# cells

An array containing the cells of the matrix.

## Declaration

```swift
var cells: [NSCell] { get }
```

## Discussion

Discussion The cells in the array are row-ordered; that is, the first row of cells appears first in the array, followed by the second row, and so forth.

## See Also

### Finding Cells

- [selectedCells](appkit/nsmatrix/selectedcells.md)
- [selectedColumn](appkit/nsmatrix/selectedcolumn.md)
- [selectedRow](appkit/nsmatrix/selectedrow.md)
- [cell(atRow:column:)](appkit/nsmatrix/cell(atrow:column:).md)
- [cell(withTag:)](appkit/nsmatrix/cell(withtag:).md)
