From ad9aa164538b46dbe82255c517210c5c8e3c2148 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 23 Oct 2009 04:06:35 +0000 Subject: [PATCH] Fixed an NSObject/NSString inconsistency found by GNUstep. --- Library.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library.mm b/Library.mm index 065908b..feed1d0 100644 --- a/Library.mm +++ b/Library.mm @@ -936,7 +936,7 @@ struct PropertyAttributes { #endif #ifdef __APPLE__ -NSString *NSCFType$cy$toJSON(id self, SEL sel, NSString *key) { +NSObject *NSCFType$cy$toJSON(id self, SEL sel, NSString *key) { return [(NSString *) CFCopyDescription((CFTypeRef) self) autorelease]; } #endif @@ -1316,7 +1316,7 @@ NSString *NSCFType$cy$toJSON(id self, SEL sel, NSString *key) { - (id) initWithJSObject:(JSObjectRef)object inContext:(JSContextRef)context; -- (NSString *) cy$toJSON:(NSString *)key; +- (NSObject *) cy$toJSON:(NSString *)key; - (NSUInteger) count; - (id) objectForKey:(id)key; -- 2.45.2