|
@@ -354,25 +354,25 @@
|
|
|
- (BOOL)isTheSameColor:(NSColor *)color1 anotherColor:(NSColor *)color2 {
|
|
|
const CGFloat *component = CGColorGetComponents(color1.CGColor);
|
|
|
const CGFloat *component1 = CGColorGetComponents(color2.CGColor);
|
|
|
- if (![self compareSize:component[0] :component1[0]]) {
|
|
|
+ if (![self km_compareSize:component[0] :component1[0]]) {
|
|
|
return NO;
|
|
|
}
|
|
|
|
|
|
- if (![self compareSize:component[1] :component1[1]]) {
|
|
|
+ if (![self km_compareSize:component[1] :component1[1]]) {
|
|
|
return NO;
|
|
|
}
|
|
|
|
|
|
- if (![self compareSize:component[2] :component1[2]]) {
|
|
|
+ if (![self km_compareSize:component[2] :component1[2]]) {
|
|
|
return NO;
|
|
|
}
|
|
|
|
|
|
- if (![self compareSize:component[3] :component1[3]]) {
|
|
|
+ if (![self km_compareSize:component[3] :component1[3]]) {
|
|
|
return NO;
|
|
|
}
|
|
|
return YES;
|
|
|
}
|
|
|
|
|
|
--(BOOL)compareSize:(CGFloat)floa1 :(CGFloat)floa2
|
|
|
+-(BOOL)km_compareSize:(CGFloat)floa1 :(CGFloat)floa2
|
|
|
{
|
|
|
CGFloat t1 = [[NSString stringWithFormat:@"%.3f", floa1] floatValue];
|
|
|
CGFloat t2 = [[NSString stringWithFormat:@"%.3f", floa2] floatValue];
|