I'm trying to kick off a drag in my Mac app. I want the drag to offer both a native UTI, and also a file promise, so that the user can drag a clipping to the desktop.
According to Apple's obsolete documentation, the way to achieve this is:
Kick off the "promise" drag with
dragPromisedFilesOfTypes:fromRect:source:slideBack:event:
Add additional pasteboard types by overriding
dragImage:at:offset:event:pasteboard:source:slideBack:
The problem with this is that Apple has since replaced AppKit's dragImage:
method with beginDraggingSession:
...and dragPromisedFilesOfTypes:
does not appear to call it.
What's the best way to go about this now?