<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.13.0"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/namesOfPromisedFilesDropped(atDestination:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)namesOfPromisedFilesDroppedAtDestination:"
  },
  "title" : "namesOfPromisedFilesDropped(atDestination:)"
}
-->

# namesOfPromisedFilesDropped(atDestination:)

Returns the names of the files that the receiver promises to create at a specified location.

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

## Parameters

`dropDestination`

A URL object that identifies the location at which the promised files will be created.

## Return Value

An array of the names of files (not full paths) that the receiver promises to create at `dropDestination`.

## Discussion

This method is invoked when the drop has been accepted by the destination and the destination, in the case of another Cocoa application, invokes the NSDraggingInfo method <doc://com.apple.documentation/documentation/AppKit/NSDraggingInfo/namesOfPromisedFilesDropped(atDestination:)>. For long operations, you can cache `dropDestination` and defer the creation of the files until the `draggedImage:endedAt:operation:` method to avoid blocking the destination application.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)