summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-04-16 07:12:24 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2008-04-16 07:12:24 +0000
commitffdee4ec2790e6878a314e48a5b759795e8efe96 (patch)
tree5f5d1d75259fe825359baf38f47d7339c0559028
parent1e7a90f519db818518e97a265cc9db18c6e81e3d (diff)
Fixed a 2.0/1.2 issue.
-rw-r--r--Cydia.mm7
1 files changed, 6 insertions, 1 deletions
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