Instance Method

deselectColumn:

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

Declaration

- (void)deselectColumn:(NSInteger)column;

Parameters

columnIndex

The index in the tableColumns array of the column to deselect.

Discussion

Deselects the column at columnIndex if it’s selected, regardless of whether empty selection is allowed.

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

If the indicated column was the last column selected by the user, the column nearest it effectively becomes the last selected column. In case of a tie, priority is given to the column on the left.

This method doesn’t check 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.

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.

- 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.