Instance Property

selectedCells

An array containing all of the matrix’s highlighted cells plus its selected cell.

Declaration

@property(readonly, copy) NSArray<__kindof NSCell *> *selectedCells;

Discussion

See the class description for a discussion of the selected cell.

As an alternative to using setSelectionFrom:to:anchor:highlight: for programmatically making discontiguous selections of cells in a matrix, you could first set the single selected cell and then set subsequent cells to be highlighted; afterwards you can access selectedCells to obtain the selection of cells.

See Also

Finding Cells

selectedCell

The most recently selected cell.

selectedColumn

The column number of the selected cell.

selectedRow

The row number of the selected cell.

- cellAtRow:column:

Returns the cell at the specified row and column.

- cellWithTag:

Searches the receiver and returns the last cell matching the specified tag.

cells

An array containing the cells of the matrix.