X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d018f3f761fa5e8a366255ecad817169ed3d1756..71a09c3579dd5cb4cd8fa7fdc143561cbff74e12:/src/osx/carbon/dataobj.cpp diff --git a/src/osx/carbon/dataobj.cpp b/src/osx/carbon/dataobj.cpp index 4b5f17969e..645733f8f4 100644 --- a/src/osx/carbon/dataobj.cpp +++ b/src/osx/carbon/dataobj.cpp @@ -4,7 +4,6 @@ // Author: Stefan Csomor // Modified by: // Created: 10/21/99 -// RCS-ID: $Id$ // Copyright: (c) 1999 Stefan Csomor // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -629,6 +628,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 +646,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