tableView:writeRows:toPasteboard:
Writes the specified rows to the specified pasteboard.
Declaration
- (BOOL) tableView:(NSTableView *) tableView writeRows:(NSArray *) rows toPasteboard:(NSPasteboard *) pboard;Parameters
- tableView:
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.