summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java
index ad379cb18d..ca8e836298 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java
@@ -694,8 +694,8 @@ boolean drop(NSObject sender) {
tdata.data = pasteboard.stringForType(type);
} else if (type.isEqual(OS.NSURLPboardType) || type.isEqual(OS.kUTTypeURL)) {
tdata.data = NSURL.URLFromPasteboard(pasteboard);
- } else if (type.isEqual(OS.NSFilenamesPboardType)) {
- tdata.data = new NSArray(pasteboard.propertyListForType(type).id);
+ } else if (type.isEqual(OS.NSFilenamesPboardType) || type.getString().equals("public.file-url")) {
+ tdata.data = new NSArray(pasteboard.propertyListForType(OS.NSFilenamesPboardType).id);
} else {
tdata.data = pasteboard.dataForType(type);
}