diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-04-16 07:12:24 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2008-04-16 07:12:24 +0000 |
commit | ffdee4ec2790e6878a314e48a5b759795e8efe96 (patch) | |
tree | 5f5d1d75259fe825359baf38f47d7339c0559028 /Cydia.mm | |
parent | 1e7a90f519db818518e97a265cc9db18c6e81e3d (diff) |
Fixed a 2.0/1.2 issue.
Diffstat (limited to 'Cydia.mm')
-rw-r--r-- | Cydia.mm | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |