# Dragging File Promises on OSX supported?

**URL:** <https://forum.juce.com/t/dragging-file-promises-on-osx-supported/25024>\
**Category:** Audio Plugins\
**Created:** [November 7, 2017, 12:09pm UTC](https://forum.juce.com/t/dragging-file-promises-on-osx-supported/25024 "2017-11-07T12:09:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunz](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kunz](https://forum.juce.com/u/kunz)\
**Post date:** [November 7, 2017, 12:09pm UTC](https://forum.juce.com/t/dragging-file-promises-on-osx-supported/25024/1 "2017-11-07T12:09:44Z")

</div>

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:

> **[Dragging Files](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/DragandDrop/Tasks/DraggingFiles.html)**
>
> Explains how to implement drag and drop in Cocoa.

Is this something that is supported by JUCE?

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [November 16, 2017, 4:37pm UTC](https://forum.juce.com/t/dragging-file-promises-on-osx-supported/25024/2 "2017-11-16T16:37:29Z")

</div>

Yes this is supported by JUCE.

---

<div class="post-metadata">

**Author:** ![kunz](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kunz](https://forum.juce.com/u/kunz)\
**Post date:** [November 16, 2017, 7:47pm UTC](https://forum.juce.com/t/dragging-file-promises-on-osx-supported/25024/3 "2017-11-16T19:47:12Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [November 24, 2017, 10:21am UTC](https://forum.juce.com/t/dragging-file-promises-on-osx-supported/25024/4 "2017-11-24T10:21:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kunz](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kunz](https://forum.juce.com/u/kunz)\
**Post date:** [November 24, 2017, 10:46am UTC](https://forum.juce.com/t/dragging-file-promises-on-osx-supported/25024/5 "2017-11-24T10:46:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [November 24, 2017, 11:16am UTC](https://forum.juce.com/t/dragging-file-promises-on-osx-supported/25024/6 "2017-11-24T11:16:27Z")

</div>

Yes that’s it.

---

<div class="post-metadata">

**Author:** ![mannzee](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@mannzee](https://forum.juce.com/u/mannzee)\
**Post date:** [July 8, 2019, 11:08am UTC](https://forum.juce.com/t/dragging-file-promises-on-osx-supported/25024/7 "2019-07-08T11:08:00Z")

</div>

Hi Fabian, we wanted to support D’n’D from Reaper’s Arranger view, that uses the promise files mechanism on macOS.

Beside JUCE 5.2.0 we have checked it with the current state on the dev branch but it doesn’t work either.

Are there plans to support that somehow?
