adding implementation for GetMatchingPair on macOS, streamlining wxDataObject

When adding the GetMatchinPair implementation, some clean-ups were done, for further details please see #1821
This commit is contained in:
Stefan Csomor
2020-04-26 17:50:33 +02:00
parent a98410504b
commit 7c61841d27
3 changed files with 89 additions and 68 deletions

View File

@@ -24,7 +24,12 @@ public:
void WriteToSink(wxOSXDataSink *sink) const;
bool ReadFromSource(wxOSXDataSource *source);
bool ReadFromSource(wxDataObject *source);
bool CanReadFromSource(wxOSXDataSource *source) const;
bool CanReadFromSource(wxDataObject *source) const;
wxDataFormat GetSupportedFormatInSource(wxOSXDataSource *source) const;
wxDataFormat GetSupportedFormatInSource(wxDataObject *source) const;
#if wxOSX_USE_COCOA
// adds all the native formats (in descending order of preference) this data object supports