An object that provides a promise for the pasteboard.
- macOS 10.12+
A file promise is a possible future file of a specified type. When you're working with drag and drop, use promises to indicate intent for future action. Avoid loading or performing any actions on the file until the promise completes.
NSFile class when creating file promises. Instantiate one
NSFile for each file promised. Set the
delegate properties before writing any
NSFile to the pasteboard. The file type must be a Uniform Type Identifier (UTI) that ultimately conforms to
NSFile will write the promised file to the destination directory.
Optionally, you may attach a
user object of your choosing to the
NSFile to determine which promise is being referenced when promising multiple files under the same