browser(_:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWith:inColumn:)
Implements file promise drag operations.
Declaration
optional func browser(_ browser: NSBrowser, namesOfPromisedFilesDroppedAtDestination dropDestination: URL, forDraggedRowsWith rowIndexes: IndexSet, inColumn column: Int) -> [String]Parameters
- browser:
The browser.
- dropDestination:
The drop filesystem location.
- rowIndexes:
The indexes of the rows the user is dropping.
- column:
The index of the column containing the rows the user is dropping.
Return Value
Filenames (not pathnames) for the actual files represented by the rows the user is dropping.
Discussion
Note that file promise drag operation support requires adding the data type filePromise to the pasteboard in the browser(_:writeRowsWith:inColumn:to:) method.