diff options
author | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-03-10 13:37:44 +0000 |
---|---|---|
committer | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-03-10 13:37:44 +0000 |
commit | e6636042890e1dbfc442dfa0fedd9797c7cb8eff (patch) | |
tree | 20ce19e671bdd0e43fceed86172a41724c94926f /tikzit/src/common/ColorRGB.m | |
parent | 0cd05a572e48b1e649ecdc8b24920c497e40466e (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.m | 4 |
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; } |