diff options
Diffstat (limited to 'src/corelib/kernel/qcore_mac_p.h')
-rw-r--r-- | src/corelib/kernel/qcore_mac_p.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcore_mac_p.h b/src/corelib/kernel/qcore_mac_p.h index 1b2dedef11..78cb0eff3b 100644 --- a/src/corelib/kernel/qcore_mac_p.h +++ b/src/corelib/kernel/qcore_mac_p.h @@ -78,6 +78,10 @@ #include <CoreServices/CoreServices.h> #endif +#ifdef __OBJC__ +#include <Foundation/Foundation.h> +#endif + #undef DEBUG #ifdef OLD_DEBUG # define DEBUG OLD_DEBUG @@ -144,6 +148,11 @@ public: operator CFStringRef() const; static QString toQString(CFStringRef cfstr); static CFStringRef toCFStringRef(const QString &str); +#ifdef __OBJC__ + static QString toQString(const NSString *nsstr); + static NSString *toNSString(const QString &string); +#endif + private: QString string; }; |