summaryrefslogtreecommitdiff
path: root/tikzit/src/common/Node.h
diff options
context:
space:
mode:
authorrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-03-10 13:37:44 +0000
committerrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-03-10 13:37:44 +0000
commite6636042890e1dbfc442dfa0fedd9797c7cb8eff (patch)
tree20ce19e671bdd0e43fceed86172a41724c94926f /tikzit/src/common/Node.h
parent0cd05a572e48b1e649ecdc8b24920c497e40466e (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.h')
-rw-r--r--tikzit/src/common/Node.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tikzit/src/common/Node.h b/tikzit/src/common/Node.h
index 844af83..e2d4520 100644
--- a/tikzit/src/common/Node.h
+++ b/tikzit/src/common/Node.h
@@ -29,6 +29,7 @@
#import "NodeStyle.h"
#import "GraphElementData.h"
+@class GraphElementProperty;
@class Shape;
@class Transformer;
@@ -83,6 +84,13 @@
*/
@property (copy) GraphElementData *data;
+// KVC methods
+- (void) insertObject:(GraphElementProperty*)gep
+ inDataAtIndex:(NSUInteger)index;
+- (void) removeObjectFromDataAtIndex:(NSUInteger)index;
+- (void) replaceObjectInDataAtIndex:(NSUInteger)index
+ withObject:(GraphElementProperty*)gep;
+
/*!
@brief Initialize a new node with the given point.
@param p a point.