]> git.saurik.com Git - cycript.git/commitdiff
Fixed an NSObject/NSString inconsistency found by GNUstep.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 23 Oct 2009 04:06:35 +0000 (04:06 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 23 Oct 2009 04:06:35 +0000 (04:06 +0000)
Library.mm

index 065908bf85df529cab12b4d85362b58723bf538c..feed1d067db9a402ecba465bd98524d39c8e995d 100644 (file)
@@ -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;