Contents

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