Drag&Drop to OSX desktop

Christian Pernot <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
Hi,

in a xulrunner application, we have drag&drop from distant files to the 
user file manager or application.

It works well on windows and linux (kde at least), but nothing happens 
on OSX. Is there a special flavor for it ?
We use xulrunner 15.

Here is the part of the code:

###########

event.dataTransfer.setData("text/x-moz-url", url + "\n" + filename);
event.dataTransfer.setData("text/x-moz-url-data", url);
event.dataTransfer.setData("text/uri-list", url);
event.dataTransfer.setData("text/x-moz-url-desc", filename);
event.dataTransfer.setData("application/x-moz-file-promise-url", url);
event.dataTransfer.setData("application/x-moz-file-promise-dest-filename", 
filename);
event.dataTransfer.setData("application/x-moz-file-promise", null);
event.dataTransfer.effectAllowed = "copyMove";

###########

thanks for any advice.

--
Christian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.