X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d018f3f761fa5e8a366255ecad817169ed3d1756..47e175a24f862aa8b7ca7dd4a2bb5957991e7f2d:/src/osx/carbon/dataobj.cpp diff --git a/src/osx/carbon/dataobj.cpp b/src/osx/carbon/dataobj.cpp index 4b5f17969e..e02e880b1a 100644 --- a/src/osx/carbon/dataobj.cpp +++ b/src/osx/carbon/dataobj.cpp @@ -629,6 +629,10 @@ void wxDataObject::AddSupportedTypes( void* cfarray) { CFArrayAppendValue((CFMutableArrayRef)cfarray, kUTTypePDF); } + else if ( dataFormat.GetType() == wxDF_PRIVATE ) + { + CFArrayAppendValue((CFMutableArrayRef)cfarray, (CFStringRef) dataFormat.GetFormatId()); + } } delete[] array; } @@ -643,8 +647,8 @@ void wxDataObject::AddSupportedTypes( void* cfarray) void wxTextDataObject::GetAllFormats(wxDataFormat *formats, wxDataObjectBase::Direction WXUNUSED(dir)) const { - *formats++ = wxDataFormat( wxDF_TEXT ); - *formats = wxDataFormat( wxDF_UNICODETEXT ); + *formats++ = wxDataFormat(wxDF_UNICODETEXT); + *formats = wxDataFormat(wxDF_TEXT); } #endif