Instance Method

filePromiseProvider(_:fileNameForType:)

Provides the drag destination file's name.

Required.

Declaration

func filePromiseProvider(_ filePromiseProvider: NSFilePromiseProvider, fileNameForType fileType: String) -> String

Parameters

filePromiseProvider

The file promise provider.

fileType

A string describing the type of file being provided.

Discussion

This method is called when the drag destination fulfills the file promise. Determine and return the final filename (a base filename, not a full path).

See Also

Handling File Promises

func operationQueue(for: NSFilePromiseProvider) -> OperationQueue

Returns the operation queue from which to issue the write request.