X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7dc3cc31af71522b8fc55b7f97bcba7f5ef9eac5..5100cabffa34c38db26884577113d01f21cda446:/src/mac/mimetype.cpp diff --git a/src/mac/mimetype.cpp b/src/mac/mimetype.cpp index c4944d12f8..77e60cbc20 100644 --- a/src/mac/mimetype.cpp +++ b/src/mac/mimetype.cpp @@ -73,6 +73,20 @@ bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const return FALSE; } +bool wxFileTypeImpl::GetMimeTypes(wxArrayString& mimeTypes) const +{ + wxString s; + + if (GetMimeType(&s)) + { + mimeTypes.Clear(); + mimeTypes.Add(s); + return TRUE; + } + else + return FALSE; +} + bool wxFileTypeImpl::GetIcon(wxIcon *icon) const { // no such file type or no value or incorrect icon entry