wxString wxStandardPathsCF::GetUserDataDir() const { #if defined( __WXMAC__ ) && wxOSX_USE_CARBON return AppendAppInfo(wxMacFindFolderNoSeparator((short)kUserDomain, kApplicationSupportFolderType, kCreateFolder)); #else return AppendAppInfo(wxFileName::GetHomeDir() + wxT("/Library/Application Support")); #endif }
wxString wxStandardPathsCF::GetUserConfigDir() const { #if defined( __WXMAC__ ) && wxOSX_USE_CARBON return wxMacFindFolderNoSeparator((short)kUserDomain, kPreferencesFolderType, kCreateFolder); #else return wxFileName::GetHomeDir() + wxT("/Library/Preferences"); #endif }
wxString wxStandardPathsCF::GetDocumentsDir() const { #if defined( __WXMAC__ ) && wxOSX_USE_CARBON return wxMacFindFolderNoSeparator ( kUserDomain, kDocumentsFolderType, kCreateFolder ); #else return wxFileName::GetHomeDir() + wxT("/Documents"); #endif }
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 }
wxString wxMacFindFolder( short vol, OSType folderType, Boolean createFolder) { return wxMacFindFolderNoSeparator(vol, folderType, createFolder) + wxFILE_SEP_PATH; }