I implemented copy and pasting using NSPasteboard and FilePromise within my app. Now I'd like to implement the following workflow.
- Copy an item in my app.
let provider = NSFilePromiseProvider(fileType: kUTTypeVideo as String, delegate: self)
- Open Finder
- Paste the item to Finder using the mouse context menu.
I'm stuck at the step 3. Finder doesn't recognize the items I added to the pasteboard so there's no "Paste Item' menu in the context menu.
Please note that this is not a drag-and-drop. With drag-and-drop, the following delegate is called just fine.
func filePromiseProvider(_ filePromiseProvider: NSFilePromiseProvider, writePromiseTo url: URL, completionHandler: @escaping (Error?) -> Void) {
Could someone give me a pointer?