1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/corefoundation/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_
17 // ----------------------------------------------------------------------------
19 // ----------------------------------------------------------------------------
21 class WXDLLIMPEXP_BASE wxStandardPathsCF
: public wxStandardPathsBase
27 // return the global standard paths object
28 // Overrides wxStandardPathsBase version for GUI code.
29 static wxStandardPathsCF
& Get();
31 // wxMac specific: allow user to specify a different bundle
32 wxStandardPathsCF(struct __CFBundle
*bundle
);
33 void SetBundle(struct __CFBundle
*bundle
);
35 // implement base class pure virtuals
36 virtual wxString
GetConfigDir() const;
37 virtual wxString
GetUserConfigDir() const;
38 virtual wxString
GetDataDir() const;
39 virtual wxString
GetLocalDataDir() const;
40 virtual wxString
GetUserDataDir() const;
41 virtual wxString
GetPluginsDir() const;
43 struct __CFBundle
*m_bundle
;
46 // wxMac has its own base so it always uses this version.
47 // Otherwise, we want to use this version only when compiling GUI code.
48 // The CoreFoundation version is always available by its full name to all code.
49 #if defined(__WXMAC__) || wxUSE_BASE == 0
50 #define wxStandardPaths wxStandardPathsCF
52 #include "wx/unix/stdpaths.h"
55 #endif // _WX_MAC_STDPATHS_H_