diff options
Diffstat (limited to 'tikzit/src/common/Node.m')
-rw-r--r-- | tikzit/src/common/Node.m | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tikzit/src/common/Node.m b/tikzit/src/common/Node.m index db1da44..7818a28 100644 --- a/tikzit/src/common/Node.m +++ b/tikzit/src/common/Node.m @@ -42,6 +42,19 @@ return self; } +- (id)copyWithZone:(NSZone*)z { + Node *cp = [[Node allocWithZone:z] init]; + [cp setPropertiesFromNode:self]; + return cp; +} + +- (void)dealloc { + [name release]; + [style release]; + [data release]; + [super dealloc]; +} + - (Shape*) shape { if (style) { return [Shape shapeForName:[style shapeName]]; @@ -172,19 +185,6 @@ [self updateData]; } -- (void)dealloc { - [name release]; - [style release]; - [data release]; - [super dealloc]; -} - -- (id)copyWithZone:(NSZone*)z { - Node *cp = [[Node allocWithZone:z] init]; - [cp setPropertiesFromNode:self]; - return cp; -} - @end // vi:ft=objc:ts=4:noet:sts=4:sw=4 |