Page 1 of 1

Drag 'n Drop on Windows and Mac: 2 different objects?

PostPosted: Tue Jul 10, 2012 10:58 pm
by cl@muc
Hello,

when I drop a file from e.g. the Desktop on a Servoy form, the event.dataMimeType (in the onDrop(event) method) is 'application/x-java-file-list' on Windows. On Mac event.dataMimeType is
'application/x-java-url'.
This results in two different objects. Is this a bug or feature?

Thanks in advance.
Christoph

Re: Drag 'n Drop on Windows and Mac: 2 different objects?

PostPosted: Tue Jul 10, 2012 11:23 pm
by ptalbot
Definitely a feature! ;)
You can have a look at the DnDFile bean on ServoyForge and see how I deal with it: https://www.servoyforge.net/projects/dndfile