---
title: "tableView(_:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWith:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableviewdatasource/tableview(_:namesofpromisedfilesdroppedatdestination:fordraggedrowswith:)"
---

# tableView(_:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWith:)

Returns an array of filenames that represent the indexSet rows for a drag to dropDestination.

## Declaration

```swift
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

Return Value An array of filenames (not full paths) for the created files that the receiver promises to create.

## Discussion

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 Promises](appkit/supporting-table-view-drag-and-drop-through-file-promises.md)
- [tableView(_:acceptDrop:row:dropOperation:)](appkit/nstableviewdatasource/tableview(_:acceptdrop:row:dropoperation:).md)
- [tableView(_:validateDrop:proposedRow:proposedDropOperation:)](appkit/nstableviewdatasource/tableview(_:validatedrop:proposedrow:proposeddropoperation:).md)
- [tableView(_:writeRowsWith:to:)](appkit/nstableviewdatasource/tableview(_:writerowswith:to:).md)
- [tableView(_:draggingSession:willBeginAt:forRowIndexes:)](appkit/nstableviewdatasource/tableview(_:draggingsession:willbeginat:forrowindexes:).md)
- [tableView(_:updateDraggingItemsForDrag:)](appkit/nstableviewdatasource/tableview(_:updatedraggingitemsfordrag:).md)
- [tableView(_:draggingSession:endedAt:operation:)](appkit/nstableviewdatasource/tableview(_:draggingsession:endedat:operation:).md)
