Instance Method

tableView:writeRows:toPasteboard:

Writes the specified rows to the specified pasteboard.

Declaration

- (BOOL)tableView:(NSTableView *)tableView writeRows:(NSArray *)rows toPasteboard:(NSPasteboard *)pboard;

Parameters

aTableView

The table view.

rows

An array of row indexes.

pboard

The pasteboard.

Return Value

Return YES to allow the drag: otherwise NO to refuse the drag.

Discussion

Invoked by aTableView after it has been determined that a drag should begin, but before the drag has been started. To refuse the drag, return NO. To start a drag, return YES and place the drag data onto pboard (data, owner, and so on). The drag image and other drag-related information will be set up and provided by the table view once this call returns with YES. rows is the list of row numbers that will be participating in the drag.

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

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