Instance Method

columnsInRect:

Returns a range of indexes for the table view’s columns that lie wholly or partially within the horizontal boundaries of the specified rectangle.

Declaration

- (NSRange)columnsInRect:(NSRect)rect;

Parameters

aRect

A rectangle in the coordinate system of the table view.

Return Value

A range of indexes for the table view’s columns that lie wholly or partially within the horizontal boundaries of aRect. If the width or height of aRect is 0, returns an NSRange whose length is 0.

Discussion

The location of the range is the first such column’s index, and the length is the number of columns that lie in aRect.

See Also

Deprecated Methods

- dragImageForRows:event:dragImageOffset:

Computes and returns an image to use for dragging.

Deprecated
- setAutoresizesAllColumnsToFit:

Controls whether the table view proportionally resizes its columns to fit when its superview’s frame changes.

Deprecated
- autoresizesAllColumnsToFit

Returns YES if the table view proportionally resizes its columns to fit when its superview’s frame changes, NO if it only resizes the last column.

Deprecated
- selectColumn:byExtendingSelection:

Selects the column at the specified index, optionally extending any existing selection.

Deprecated
- selectRow:byExtendingSelection:

Selects a row at the specified index, optionally extending any existing selection.

Deprecated
- tableView:writeRows:toPasteboard:

Writes the specified rows to the specified pasteboard.

Deprecated
- setDrawsGrid:

Sets whether the table view draws a grid.

Deprecated
- drawsGrid

Returns a Boolean value that indicates whether the table view draws a grid.

Deprecated
- selectedColumnEnumerator

This method has been deprecated.

Deprecated
- selectedRowEnumerator

This method has been deprecated.

Deprecated
- focusedColumn

Returns the currently focused column.

Deprecated
- setFocusedColumn:

Sets the currently focused column to the specified index.

Deprecated
- shouldFocusCell:atColumn:row:

Returns whether the fully prepared cell at the specified row and column can be made the focused cell.

Deprecated
- performClickOnCellAtColumn:row:

Performs a click action on the cell at the specified row and column.

Deprecated
- preparedCellAtColumn:row:

Returns the fully prepared cell that the table view will use for drawing or processing of the specified row and column.

Deprecated
- textShouldBeginEditing:

Queries the delegate to determine if the text should begin editing.

Deprecated
- textDidBeginEditing:

Posts an NSControlTextDidBeginEditingNotification to the default notification center.

Deprecated
- textDidChange:

Sends textDidChange: to the edited cell and posts an NSControlTextDidChangeNotification to the default notification center.

Deprecated
- textShouldEndEditing:

Validates the text object for the cell being edited by querying the delegate.queries the delegate using control:textShouldEndEditing:, returning the delegate’s response if it responds to that method.

Deprecated
- textDidEndEditing:

Updates the data source based on the newly edited value and selects another cell for editing if possible according to the character that ended editing (Return, Tab, Backtab).

Deprecated