git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43381
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
return GetFromFunc(CFBundleCopySharedSupportURL);
}
return GetFromFunc(CFBundleCopySharedSupportURL);
}
+// TODO: implement this using real CoreFoundation API instead of Carbon API
wxString wxStandardPathsCF::GetExecutablePath() const
{
wxString wxStandardPathsCF::GetExecutablePath() const
{
ProcessInfoRec processinfo;
ProcessSerialNumber procno ;
FSSpec fsSpec;
ProcessInfoRec processinfo;
ProcessSerialNumber procno ;
FSSpec fsSpec;
GetProcessInformation( &procno , &processinfo ) ;
return wxMacFSSpec2MacFilename(&fsSpec);
GetProcessInformation( &procno , &processinfo ) ;
return wxMacFSSpec2MacFilename(&fsSpec);
+#else
+ return wxStandardPathsBase::GetExecutablePath();
+#endif
}
wxString wxStandardPathsCF::GetLocalDataDir() const
}
wxString wxStandardPathsCF::GetLocalDataDir() const