---
title: "namesOfPromisedFilesDropped(atDestination:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsdragginginfo/namesofpromisedfilesdropped(atdestination:)"
---

# namesOfPromisedFilesDropped(atDestination:)

Sets the drop location for promised files and returns the names of the files that the receiver promises to create there.

## Declaration

```swift
func namesOfPromisedFilesDropped(atDestination dropDestination: URL) -> [String]?
```

## Parameters

- `dropDestination`: A URL object specifying the drop location for promised files.

## Return Value

Return Value An array of file names, which are not full paths.

## Discussion

Discussion Drag destinations should invoke this method within their performDragOperation: method. The source may or may not have created the files by the time this method returns.

## See Also

### Obtaining information about the dragging session

- [draggingPasteboard](appkit/nsdragginginfo/draggingpasteboard.md)
- [draggingSequenceNumber](appkit/nsdragginginfo/draggingsequencenumber.md)
- [draggingSource](appkit/nsdragginginfo/draggingsource.md)
- [draggingSourceOperationMask](appkit/nsdragginginfo/draggingsourceoperationmask.md)
- [draggingLocation](appkit/nsdragginginfo/dragginglocation.md)
- [draggingDestinationWindow](appkit/nsdragginginfo/draggingdestinationwindow.md)
- [numberOfValidItemsForDrop](appkit/nsdragginginfo/numberofvaliditemsfordrop.md)
