filePromiseProvider(_:fileNameForType:)
Provides the drag destination file’s name.
Declaration
@MainActor func filePromiseProvider(_ filePromiseProvider: NSFilePromiseProvider, fileNameForType fileType: String) -> StringParameters
- 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).