#include "wx/stdpaths.h"
#include "wx/filename.h"
#ifdef __WXMAC__
-#include "wx/mac/private.h"
+#include "wx/osx/private.h"
#endif
-#include "wx/mac/corefoundation/cfstring.h"
+#include "wx/osx/core/cfstring.h"
#include <CoreFoundation/CFBundle.h>
#include <CoreFoundation/CFURL.h>
wxString wxStandardPathsCF::GetDocumentsDir() const
{
-#if defined( __WXMAC__ ) && !defined(__WXOSX_IPHONE__)
+#if defined( __WXMAC__ ) && wxOSX_USE_CARBON
return wxMacFindFolderNoSeparator
(
kUserDomain,
wxString wxStandardPathsCF::GetConfigDir() const
{
-#if defined( __WXMAC__ ) && !defined(__WXOSX_IPHONE__)
+#if defined( __WXMAC__ ) && wxOSX_USE_CARBON
return wxMacFindFolder((short)kLocalDomain, kPreferencesFolderType, kCreateFolder);
#else
return wxT("/Library/Preferences");
wxString wxStandardPathsCF::GetUserConfigDir() const
{
-#if defined( __WXMAC__ ) && !defined(__WXOSX_IPHONE__)
+#if defined( __WXMAC__ ) && wxOSX_USE_CARBON
return wxMacFindFolder((short)kUserDomain, kPreferencesFolderType, kCreateFolder);
#else
return wxFileName::GetHomeDir() + wxT("/Library/Preferences");
#else
FSSpec fsSpec;
#endif
-
+
procno.highLongOfPSN = 0 ;
procno.lowLongOfPSN = kCurrentProcess ;
processinfo.processInfoLength = sizeof(ProcessInfoRec);
#else
processinfo.processAppSpec = &fsSpec;
#endif
-
+
GetProcessInformation( &procno , &processinfo ) ;
#ifdef __LP64__
return wxMacFSRefToPath(&fsRef);
return wxMacFSSpec2MacFilename(&fsSpec);
#endif
#endif
-
+
#else
return wxStandardPathsBase::GetExecutablePath();
#endif
wxString wxStandardPathsCF::GetLocalDataDir() const
{
-#if defined( __WXMAC__ ) && !defined(__WXOSX_IPHONE__)
+#if defined( __WXMAC__ ) && wxOSX_USE_CARBON
return AppendAppInfo(wxMacFindFolder((short)kLocalDomain, kApplicationSupportFolderType, kCreateFolder));
#else
return AppendAppInfo(wxT("/Library/Application Support"));
wxString wxStandardPathsCF::GetUserDataDir() const
{
-#if defined( __WXMAC__ ) && !defined(__WXOSX_IPHONE__)
+#if defined( __WXMAC__ ) && wxOSX_USE_CARBON
return AppendAppInfo(wxMacFindFolder((short)kUserDomain, kApplicationSupportFolderType, kCreateFolder));
#else
- return AppendAppInfo(wxFileName::GetHomeDir() + _T("/Library/Application Support"));
+ return AppendAppInfo(wxFileName::GetHomeDir() + wxT("/Library/Application Support"));
#endif
}
ResourceCat category) const
{
return wxStandardPathsBase::
- GetLocalizedResourcesDir(lang, category) + _T(".lproj");
+ GetLocalizedResourcesDir(lang, category) + wxT(".lproj");
}
#endif // wxUSE_STDPATHS