X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5158fa61f150b8a11f175588f2c6afe455ff7fe..2cf3a6d7bef6f20bea35062dd3d4dbf0aec9efb5:/src/mac/corefoundation/stdpaths_cf.cpp diff --git a/src/mac/corefoundation/stdpaths_cf.cpp b/src/mac/corefoundation/stdpaths_cf.cpp index eb6e0367bf..d4068cc2fa 100644 --- a/src/mac/corefoundation/stdpaths_cf.cpp +++ b/src/mac/corefoundation/stdpaths_cf.cpp @@ -31,6 +31,7 @@ #include "wx/mac/private.h" #endif #include "wx/mac/corefoundation/cfstring.h" +#include "wx/mac/private.h" #if defined(__DARWIN__) #include @@ -106,6 +107,24 @@ wxString wxStandardPathsCF::GetFromFunc(wxCFURLRef (*func)(wxCFBundleRef)) const return ret; } +wxString wxStandardPathsCF::GetDocumentsDir() const +{ +#ifdef __WXMAC__ + return wxMacFindFolderNoSeparator + ( +#if TARGET_API_MAC_OSX + kUserDomain, +#else + kOnSystemDisk, +#endif + kDocumentsFolderType, + kCreateFolder + ); +#else + return wxFileName::GetHomeDir() + wxT("/Documents"); +#endif +} + // ---------------------------------------------------------------------------- // wxStandardPathsCF public API // ----------------------------------------------------------------------------