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 非推奨メソッド