From 18ed94e47191c28a6fc233ee9a7b22eb0f3acb34 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 4 Jun 2012 02:07:25 -0700 Subject: [PATCH] Support __NSCFBoolean, the iOS version of NSCFBoolean. --- ObjectiveC/Library.mm | 3 +++ 1 file changed, 3 insertions(+) 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"); -- 2.47.2