Dragging File Promises on OSX supported?


#1

I have a plug-in which allows to drag samples into the plugin. A user requested “Dragging File Promises” to extend drag and drop support in some hosts. I don’t know much about that topic. Here is apple’s description:

https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/DragandDrop/Tasks/DraggingFiles.html

Is this something that is supported by JUCE?


#2

Yes this is supported by JUCE.


#3

Hi Fabian, thanks for the info. What do i need to do to consume those drag and drop events. Is there something like FileDragAndDropTarget? i have no idea how this works… or should it work out of the box?


#4

Yes, you would just use a FileDragAndDropTarget and override the filesDropped method. This will give you a list of paths to the files that were dropped on your component.


#5

Thanks for the information. So you handle the promise drag and drop directly in the FileDragAndDropTarget. I will have a closer look at it.


#6

Yes that’s it.