1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/core/stdpaths.h
3 // Purpose: wxStandardPaths for CoreFoundation systems
4 // Author: David Elliott
8 // Copyright: (c) 2004 David Elliott
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MAC_STDPATHS_H_
13 #define _WX_MAC_STDPATHS_H_
18 typedef const __CFURL
* wxCFURLRef
;
19 typedef __CFBundle
* wxCFBundleRef
;
21 // we inherit the GUI CF-based wxStandardPaths implementation from the Unix one
22 // used for console programs if possible (i.e. if we're under a Unix system at
25 #include "wx/unix/stdpaths.h"
26 #define wxStandardPathsCFBase wxStandardPaths
28 #define wxStandardPathsCFBase wxStandardPathsBase
31 // ----------------------------------------------------------------------------
33 // ----------------------------------------------------------------------------
35 class WXDLLIMPEXP_BASE wxStandardPathsCF
: public wxStandardPathsCFBase
39 virtual ~wxStandardPathsCF();
41 // wxMac specific: allow user to specify a different bundle
42 wxStandardPathsCF(wxCFBundleRef bundle
);
43 void SetBundle(wxCFBundleRef bundle
);
45 // implement base class pure virtuals
46 virtual wxString
GetExecutablePath() const;
47 virtual wxString
GetConfigDir() const;
48 virtual wxString
GetUserConfigDir() const;
49 virtual wxString
GetDataDir() const;
50 virtual wxString
GetLocalDataDir() const;
51 virtual wxString
GetUserDataDir() const;
52 virtual wxString
GetPluginsDir() const;
53 virtual wxString
GetResourcesDir() const;
55 GetLocalizedResourcesDir(const wxString
& lang
,
56 ResourceCat category
= ResourceCat_None
) const;
57 virtual wxString
GetDocumentsDir() const;
60 // this function can be called with any of CFBundleCopyXXXURL function
61 // pointer as parameter
62 wxString
GetFromFunc(wxCFURLRef (*func
)(wxCFBundleRef
)) const;
64 wxCFBundleRef m_bundle
;
67 #endif // _WX_MAC_STDPATHS_H_