summaryrefslogtreecommitdiff
path: root/tikzit/src/common/ColorRGB.m
diff options
context:
space:
mode:
authorrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-03-10 13:37:44 +0000
committerrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-03-10 13:37:44 +0000
commite6636042890e1dbfc442dfa0fedd9797c7cb8eff (patch)
tree20ce19e671bdd0e43fceed86172a41724c94926f /tikzit/src/common/ColorRGB.m
parent0cd05a572e48b1e649ecdc8b24920c497e40466e (diff)
Make common code KVC compliant, and implement NSCopying where relevant
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@420 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/common/ColorRGB.m')
-rw-r--r--tikzit/src/common/ColorRGB.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/tikzit/src/common/ColorRGB.m b/tikzit/src/common/ColorRGB.m
index b6fc2e3..673a88d 100644
--- a/tikzit/src/common/ColorRGB.m
+++ b/tikzit/src/common/ColorRGB.m
@@ -263,8 +263,8 @@ static NSMapTable *colorHash = nil;
return dr*dr + dg*dg + db*db;
}
-- (id)copy {
- ColorRGB *col = [[ColorRGB alloc] initWithRed:red green:green blue:blue];
+- (id)copyWithZone:(NSZone*)zone {
+ ColorRGB *col = [[ColorRGB allocWithZone:zone] initWithRed:red green:green blue:blue];
return col;
}