tableView(_:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWith:)
Returns an array of filenames that represent the indexSet rows for a drag to dropDestination.
Declaration
optional func tableView(_ tableView: NSTableView, namesOfPromisedFilesDroppedAtDestination dropDestination: URL, forDraggedRowsWith indexSet: IndexSet) -> [String]Parameters
- tableView:
The table view that sent the message.
- dropDestination:
The drop location where the files are created.
- indexSet:
The indexes of the items being dragged.
Return Value
An array of filenames (not full paths) for the created files that the receiver promises to create.
Discussion
This method is called when a destination has accepted a promise drag.
For more information on file promise dragging, see documentation on the NSDraggingSource protocol and namesOfPromisedFilesDropped(atDestination:).
See Also
Drag and Drop
Supporting Table View Drag and Drop Through File PromisestableView(_:acceptDrop:row:dropOperation:)tableView(_:validateDrop:proposedRow:proposedDropOperation:)tableView(_:writeRowsWith:to:)tableView(_:draggingSession:willBeginAt:forRowIndexes:)tableView(_:updateDraggingItemsForDrag:)tableView(_:draggingSession:endedAt:operation:)