From: Jay Freeman (saurik) Date: Mon, 4 Jun 2012 09:07:25 +0000 (-0700) Subject: Support __NSCFBoolean, the iOS version of NSCFBoolean. X-Git-Tag: v0.9.456~44 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/18ed94e47191c28a6fc233ee9a7b22eb0f3acb34 Support __NSCFBoolean, the iOS version of NSCFBoolean. --- diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index 9b242d8..74931c0 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -2529,6 +2529,9 @@ void CYObjectiveC_Initialize() { /*XXX*/ JSContextRef context(NULL); CYPoolTry { #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");