supporting promised file urls for transfer, see #14281
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -556,7 +556,7 @@ wxWidgetImplType* wxWidgetImpl::CreateListBox( wxWindowMac* wxpeer,
|
|||||||
|
|
||||||
// temporary hook for dnd
|
// temporary hook for dnd
|
||||||
[tableview registerForDraggedTypes:[NSArray arrayWithObjects:
|
[tableview registerForDraggedTypes:[NSArray arrayWithObjects:
|
||||||
NSStringPboardType, NSFilenamesPboardType, NSTIFFPboardType, NSPICTPboardType, NSPDFPboardType, nil]];
|
NSStringPboardType, NSFilenamesPboardType, (NSString*) kPasteboardTypeFileURLPromise, NSTIFFPboardType, NSPICTPboardType, NSPDFPboardType, nil]];
|
||||||
|
|
||||||
[ds setImplementation:c];
|
[ds setImplementation:c];
|
||||||
return c;
|
return c;
|
||||||
|
@@ -2536,7 +2536,7 @@ wxWidgetImpl* wxWidgetImpl::CreateUserPane( wxWindowMac* wxpeer, wxWindowMac* WX
|
|||||||
|
|
||||||
// temporary hook for dnd
|
// temporary hook for dnd
|
||||||
[v registerForDraggedTypes:[NSArray arrayWithObjects:
|
[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 );
|
wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v, false, true );
|
||||||
return c;
|
return c;
|
||||||
|
Reference in New Issue
Block a user