From 789e2d57b8a80475d899f12019e18d71b19998bc Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 8 Dec 2005 21:49:52 +0000 Subject: [PATCH] Use ~/Application Support folder on Mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/stdpaths.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/unix/stdpaths.cpp b/src/unix/stdpaths.cpp index fbecba3600..fc50fe8ae5 100644 --- a/src/unix/stdpaths.cpp +++ b/src/unix/stdpaths.cpp @@ -38,6 +38,10 @@ #include #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