diff options
author | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-03-08 18:22:22 +0000 |
---|---|---|
committer | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-03-08 18:22:22 +0000 |
commit | 0cd05a572e48b1e649ecdc8b24920c497e40466e (patch) | |
tree | 3f6e2aa5543c809fc7727e070c5e7ae11f3eaa3e /tikzit/src/common/GraphElementProperty.m | |
parent | d26e56e2fd57da2dadddf760b2984956f7daa069 (diff) |
Fix how copying is implemented
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@419 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/common/GraphElementProperty.m')
-rw-r--r-- | tikzit/src/common/GraphElementProperty.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tikzit/src/common/GraphElementProperty.m b/tikzit/src/common/GraphElementProperty.m index 79abe79..9751230 100644 --- a/tikzit/src/common/GraphElementProperty.m +++ b/tikzit/src/common/GraphElementProperty.m @@ -102,13 +102,13 @@ return [self matches:object]; } -- (id)copy { +- (id)copyWithZone:(NSZone*)zone { if (isAtom) { - return [[GraphElementProperty alloc] initWithAtomName:[self key]]; + return [[GraphElementProperty allocWithZone:zone] initWithAtomName:[self key]]; } else if (isKeyMatch) { - return [[GraphElementProperty alloc] initWithKeyMatching:[self key]]; + return [[GraphElementProperty allocWithZone:zone] initWithKeyMatching:[self key]]; } else { - return [[GraphElementProperty alloc] initWithPropertyValue:[self value] forKey:[self key]]; + return [[GraphElementProperty allocWithZone:zone] initWithPropertyValue:[self value] forKey:[self key]]; } } |