]> git.saurik.com Git - cycript.git/blobdiff - ObjectiveC/Library.mm
Support __NSCFBoolean, the iOS version of NSCFBoolean.
[cycript.git] / ObjectiveC / Library.mm
index 9b242d8471a9f21c6206f6617abae4d5ab98f9e2..74931c099f86d10860c029b3c35acbe53ee1434a 100644 (file)
@@ -2529,6 +2529,9 @@ void CYObjectiveC_Initialize() { /*XXX*/ JSContextRef context(NULL); CYPoolTry {
 
 #ifdef __APPLE__
     NSCFBoolean_ = objc_getClass("NSCFBoolean");
 
 #ifdef __APPLE__
     NSCFBoolean_ = objc_getClass("NSCFBoolean");
+    if (NSCFBoolean_ == nil)
+        NSCFBoolean_ = objc_getClass("__NSCFBoolean");
+
     NSCFType_ = objc_getClass("NSCFType");
     NSGenericDeallocHandler_ = objc_getClass("__NSGenericDeallocHandler");
     NSMessageBuilder_ = objc_getClass("NSMessageBuilder");
     NSCFType_ = objc_getClass("NSCFType");
     NSGenericDeallocHandler_ = objc_getClass("__NSGenericDeallocHandler");
     NSMessageBuilder_ = objc_getClass("NSMessageBuilder");