Instance Method

selectAll:

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

Declaration

- (void)selectAll:(id)sender;

Parameters

sender

Typically the object that sent the message.

Discussion

If the table allows multiple selection, this action method selects all rows or all columns, according to whether rows or columns were most recently selected. If nothing has been recently selected, this method selects all rows. If this table doesn’t allow multiple selection, this method does nothing.

If the selection does change, this method posts NSTableViewSelectionDidChangeNotification to the default notification center.

As a target-action method, selectAll: checks with the delegate before changing the selection.

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.

- selectRowIndexes:byExtendingSelection:

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

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.

- deselectAll:

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