]> git.saurik.com Git - cycript.git/commitdiff
Prefer __NSCFBoolean to non-__ for iOS compatibility.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 13 Sep 2012 08:49:17 +0000 (01:49 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 13 Sep 2012 08:49:17 +0000 (01:49 -0700)
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");