Instance Method

filePromiseProvider:fileNameForType:

Provides the drag destination file's name.

Required.

Declaration

- (NSString *)filePromiseProvider:(NSFilePromiseProvider *)filePromiseProvider fileNameForType:(NSString *)fileType;

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

- filePromiseProvider:writePromiseToURL:completionHandler:

Writes the contents of a promise to the specified URL.

Required.

- operationQueueForFilePromiseProvider:

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