]> git.saurik.com Git - wxWidgets.git/commitdiff
Use ~/Application Support folder on Mac
authorJulian Smart <julian@anthemion.co.uk>
Thu, 8 Dec 2005 21:49:52 +0000 (21:49 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 8 Dec 2005 21:49:52 +0000 (21:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/stdpaths.cpp

index fbecba3600730cee85065f3db5af5ff078579fc8..fc50fe8ae5178f6d9aaa38f9acacbc6295720dd3 100644 (file)
     #include <unistd.h>
 #endif
 
+#if defined(__WXMAC__)
+    #include "wx/mac/private.h"
+#endif
+
 // ============================================================================
 // wxStandardPaths implementation
 // ============================================================================
@@ -129,6 +133,8 @@ wxString wxStandardPaths::GetUserDataDir() const
 {
 #ifdef __VMS
    return wxFileName::GetHomeDir();
+#elif defined(__WXMAC__)
+   return AppendAppName(wxMacFindFolder((short) kUserDomain, kApplicationSupportFolderType, kDontCreateFolder));
 #else
    return AppendAppName(wxFileName::GetHomeDir() + _T("/."));
 #endif