Instance Method

selectRowIndexes:byExtendingSelection:

Sets the row selection using indexes extending the selection if specified.

Declaration

- (void)selectRowIndexes:(NSIndexSet *)indexes byExtendingSelection:(BOOL)extend;

Parameters

indexes

The indexes to select.

extend

YES if the selection should be extended, NO if the current selection should be changed.

Discussion

Replaces the deprecated selectRow:byExtendingSelection: method.

See Also

Selecting Columns and Rows

- selectColumnIndexes:byExtendingSelection:

Sets the column selection using indexes possibly extending the selection.

selectedColumn

The index of the last selected column (or the last column added to the selection).

selectedColumnIndexes

An index set containing the indexes of the selected columns.

- deselectColumn:

Deselects the column at the specified index if it’s selected.

numberOfSelectedColumns

The number of selected columns.

- isColumnSelected:

Returns a Boolean value that indicates whether the column at the specified index is selected.

selectedRow

The index of the last selected row (or the last row added to the selection).

selectedRowIndexes

An index set containing the indexes of the selected rows.

- deselectRow:

Deselects the row at the specified index if it’s selected.

numberOfSelectedRows

The number of selected rows.

- isRowSelected:

Returns a Boolean value that indicates whether the row at the specified index is selected.

- selectAll:

Selects all rows or all columns, according to whether rows or columns were most recently selected.

- deselectAll:

Deselects all selected rows or columns if empty selection is allowed; otherwise does nothing.