From: Jay Freeman (saurik) Date: Wed, 16 Apr 2008 07:12:24 +0000 (+0000) Subject: Fixed a 2.0/1.2 issue. X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/171bba0eca2bc7e481aac3d548895a4b4ae26947 Fixed a 2.0/1.2 issue. --- diff --git a/Cydia.mm b/Cydia.mm index 8bd168cf..46a35ab6 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -77,17 +77,22 @@ while (false) @interface NSObject (iPhoneOS) - (CGColorRef) cgColor; +- (CGColorRef) CGColor; - (void) set; @end @implementation NSObject (iPhoneOS) - (CGColorRef) cgColor { + return [self CGColor]; +} + +- (CGColorRef) CGColor { return (CGColorRef) self; } - (void) set { - [[[[objc_getClass("UICGColor") alloc] initWithCGColor:[self cgColor]] autorelease] set]; + [[[[objc_getClass("UICGColor") alloc] initWithCGColor:[self CGColor]] autorelease] set]; } @end