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/Node.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/Node.m')
-rw-r--r-- | tikzit/src/common/Node.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tikzit/src/common/Node.m b/tikzit/src/common/Node.m index 39b1e75..d4da82b 100644 --- a/tikzit/src/common/Node.m +++ b/tikzit/src/common/Node.m @@ -145,7 +145,19 @@ @synthesize name; @synthesize label; @synthesize point; + @synthesize data; +- (void) insertObject:(GraphElementProperty*)gep + inDataAtIndex:(NSUInteger)index { + [data insertObject:gep atIndex:index]; +} +- (void) removeObjectFromDataAtIndex:(NSUInteger)index { + [data removeObjectAtIndex:index]; +} +- (void) replaceObjectInDataAtIndex:(NSUInteger)index + withObject:(GraphElementProperty*)gep { + [data replaceObjectAtIndex:index withObject:gep]; +} - (NodeStyle*)style { return style; |