Drag & drop From Catalyst to Finder

Hello, I'm trying to implement drag & drop support for my Catalyst application, with my app being the source, and Finder is the target.

I'm working in a sample app to test the APIs, and I have it working such that I can drag a UIImage from my app, and drop it on the Messages app, and that all works well.

Do note, I'm wrapping my UIImage in a custom object in order to exercise the NSItemProviderWriting protocol.

However, when I try to drag the image from my app and drop it on my Desktop, nothing happens. In fact, -loadDataWithTypeIdentifier: forItemProviderCompletionHandler: is never called in that situation.

This seems like a privacy issue to me. I'm wondering if there's a plist key I need to set, or some security clearance I must request?
Big Sur or Catalina?
Same thing happening to me. On Big Sur, @dawmster
Ok, I've figured out the issue. When sending out your NSItemProvider in the drag item, you have to use one of the register methods


Please go here, in the Providing the Item’s Data section : https://developer.apple.com/documentation/foundation/nsitemprovider



Drag & drop From Catalyst to Finder
 
 
Q