From ffdee4ec2790e6878a314e48a5b759795e8efe96 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 16 Apr 2008 07:12:24 +0000 Subject: Fixed a 2.0/1.2 issue. --- Cydia.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Cydia.mm b/Cydia.mm index 8bd168c..46a35ab 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 -- cgit v1.2.3