]> git.saurik.com Git - wxWidgets.git/commitdiff
supporting promised file urls for transfer, see #14281
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 18 Jun 2012 20:27:35 +0000 (20:27 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 18 Jun 2012 20:27:35 +0000 (20:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/listbox.mm
src/osx/cocoa/window.mm

index 4b10d40656059b215e972d825b4905f0237e6945..f49f1df02c9bdb88012bbccb73035f15b34c938b 100644 (file)
@@ -556,7 +556,7 @@ wxWidgetImplType* wxWidgetImpl::CreateListBox( wxWindowMac* wxpeer,
 
     // temporary hook for dnd
     [tableview registerForDraggedTypes:[NSArray arrayWithObjects:
-        NSStringPboardType, NSFilenamesPboardType, NSTIFFPboardType, NSPICTPboardType, NSPDFPboardType, nil]];
+        NSStringPboardType, NSFilenamesPboardType, (NSString*) kPasteboardTypeFileURLPromise, NSTIFFPboardType, NSPICTPboardType, NSPDFPboardType, nil]];
 
     [ds setImplementation:c];
     return c;
index 81569093a84617b8313bb4d6ba6e2388cc579bd1..1bebf436d2519760e561765441f7200d3478244e 100644 (file)
@@ -2536,7 +2536,7 @@ wxWidgetImpl* wxWidgetImpl::CreateUserPane( wxWindowMac* wxpeer, wxWindowMac* WX
 
     // temporary hook for dnd
     [v registerForDraggedTypes:[NSArray arrayWithObjects:
-        NSStringPboardType, NSFilenamesPboardType, NSTIFFPboardType, NSPICTPboardType, NSPDFPboardType, nil]];
+        NSStringPboardType, NSFilenamesPboardType, (NSString*) kPasteboardTypeFileURLPromise, NSTIFFPboardType, NSPICTPboardType, NSPDFPboardType, nil]];
 
     wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v, false, true );
     return c;