]> git.saurik.com Git - cycript.git/blobdiff - ObjectiveC/Library.mm
Prefer __NSCFBoolean to non-__ for iOS compatibility.
[cycript.git] / ObjectiveC / Library.mm
index db3196bd591d32e0b2a898cf6c1585a2b1c6c115..1749d88d60a41270a50c51eb9685014a314bc30a 100644 (file)
@@ -2539,9 +2539,10 @@ void CYObjectiveC_Initialize() { /*XXX*/ JSContextRef context(NULL); CYPoolTry {
     Selector_type = new(pool) Type_privateData(":");
 
 #ifdef __APPLE__
-    NSCFBoolean_ = objc_getClass("NSCFBoolean");
+    // XXX: apparently, iOS now has both of these
+    NSCFBoolean_ = objc_getClass("__NSCFBoolean");
     if (NSCFBoolean_ == nil)
-        NSCFBoolean_ = objc_getClass("__NSCFBoolean");
+        NSCFBoolean_ = objc_getClass("NSCFBoolean");
 
     NSCFType_ = objc_getClass("NSCFType");
     NSGenericDeallocHandler_ = objc_getClass("__NSGenericDeallocHandler");