From e6636042890e1dbfc442dfa0fedd9797c7cb8eff Mon Sep 17 00:00:00 2001 From: randomguy3 Date: Sat, 10 Mar 2012 13:37:44 +0000 Subject: 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 --- tikzit/src/common/ColorRGB.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tikzit/src/common/ColorRGB.m') 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; } -- cgit v1.2.3