#include "wx/dlimpexp.h"
#include "wx/fontenc.h"
-#include "wx/mac/corefoundation/cfref.h"
+#include "wx/osx/core/cfref.h"
class WXDLLIMPEXP_FWD_BASE wxString;
wxCFStringRef(const wxString &str,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT) ;
+#if wxOSX_USE_COCOA_OR_IPHONE
+ wxCFStringRef(NSString* ref)
+ : wxCFRef< CFStringRef >((CFStringRef) ref)
+ {
+ }
+#endif
+
wxCFStringRef(CFStringRef ref)
: wxCFRef< CFStringRef >(ref)
{
wxString AsString( wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) ;
+#if wxOSX_USE_COCOA_OR_IPHONE
+ NSString* AsNSString() const { return (NSString*)(CFStringRef) *this; }
+#endif
private:
} ;