X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7dc3cc31af71522b8fc55b7f97bcba7f5ef9eac5..0460407f86c7107ff3548afbd846aa8dfd44cc20:/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