From 171bba0eca2bc7e481aac3d548895a4b4ae26947 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 16 Apr 2008 07:12:24 +0000 Subject: [PATCH 1/1] 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 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 -- 2.45.2