X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c6eb3a84be918dcfed2496d014549e13af0f0e9..44c87b7d15d5c1f5926beffa4cd5c9d1d2045e04:/include/wx/osx/core/cfstring.h diff --git a/include/wx/osx/core/cfstring.h b/include/wx/osx/core/cfstring.h index c4b1719c4d..2cd04a9d76 100644 --- a/include/wx/osx/core/cfstring.h +++ b/include/wx/osx/core/cfstring.h @@ -17,7 +17,7 @@ #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; @@ -41,6 +41,13 @@ public: 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) { @@ -57,6 +64,9 @@ public: wxString AsString( wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) ; +#if wxOSX_USE_COCOA_OR_IPHONE + NSString* AsNSString() const { return (NSString*)(CFStringRef) *this; } +#endif private: } ;