adding data-transfer direction when getting native datatypes

we are publishing exactly what we have internally when data has to be get, and when setting, we might have more formats we can support
This commit is contained in:
Stefan Csomor
2020-07-12 17:53:10 +02:00
parent b7057c336f
commit b2d4a9dedc
5 changed files with 52 additions and 29 deletions

View File

@@ -3215,7 +3215,7 @@ void wxWidgetCocoaImpl::SetDropTarget(wxDropTarget* target)
if (dobj)
{
wxCFMutableArrayRef<CFStringRef> typesarray;
dobj->AddSupportedTypes(typesarray);
dobj->AddSupportedTypes(typesarray, wxDataObjectBase::Direction::Get);
NSView* targetView = m_osxView;
if ([m_osxView isKindOfClass:[NSScrollView class]])
targetView = [(NSScrollView*)m_osxView documentView];