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

# selectedCell

The most recently selected cell.

## Declaration

```occ
@property (strong, readonly, nullable) NSCell * selectedCell;
```

## Discussion

Discussion When the value of this property is nil, no cell is selected. If more than one cell is selected, the value of this property is the cell that is lowest and farthest to the right in the matrix.

## 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)
- [cells](appkit/nsmatrix/cells.md)
