---
title: NSFilePromiseReceiver
framework: appkit
role: symbol
role_heading: Class
path: appkit/nsfilepromisereceiver
---

# NSFilePromiseReceiver

An object that receives a file promise from the pasteboard.

## Declaration

```swift
class NSFilePromiseReceiver
```

## Overview

Overview Because NSFilePromiseReceiver implements the NSPasteboardReading protocol, you receive all file promises on the drag pasteboard as follows: Likewise, you can enumerate dragged items by calling the following: note: A non-item-based drag source may promise multiple files on the same pasteboard item. To be compatible with these drag sources, many NSFilePromiseReceiver methods return an array of values. Multiple-file item-based promises result in one NSFilePromiseReceiver per promised file.

## Topics

### Instance Properties

- [fileNames](appkit/nsfilepromisereceiver/filenames.md)
- [fileTypes](appkit/nsfilepromisereceiver/filetypes.md)

### Instance Methods

- [receivePromisedFiles(atDestination:options:operationQueue:reader:)](appkit/nsfilepromisereceiver/receivepromisedfiles(atdestination:options:operationqueue:reader:).md)

### Type Properties

- [readableDraggedTypes](appkit/nsfilepromisereceiver/readabledraggedtypes.md)

### Initializers

- [init(pasteboardPropertyList:ofType:)](appkit/nsfilepromisereceiver/init(pasteboardpropertylist:oftype:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSPasteboardReading](appkit/nspasteboardreading.md)

## See Also

### File Promises

- [Supporting Drag and Drop Through File Promises](appkit/supporting-drag-and-drop-through-file-promises.md)
- [Supporting Table View Drag and Drop Through File Promises](appkit/supporting-table-view-drag-and-drop-through-file-promises.md)
- [Supporting Collection View Drag and Drop Through File Promises](appkit/supporting-collection-view-drag-and-drop-through-file-promises.md)
- [NSFilePromiseProvider](appkit/nsfilepromiseprovider.md)
- [NSFilePromiseProviderDelegate](appkit/nsfilepromiseproviderdelegate.md)
