summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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