Instance Method

tableView:pasteboardWriterForRow:

Called to allow the table to support multiple item dragging.

Declaration

- (id<NSPasteboardWriting>)tableView:(NSTableView *)tableView pasteboardWriterForRow:(NSInteger)row;

Parameters

tableView

The table view.

row

The row.

Return Value

Returns an instance of NSPasteboardItem or a custom object that implements the NSPasteboardWriting protocol. Returning nil excludes the row from being dragged.

Discussion

This method is required for multi-image dragging.

If this method is implemented, then tableView:writeRowsWithIndexes:toPasteboard: will not be called.