diff options
author | Johan Paulsson <gonz@users.sourceforge.net> | 2013-01-24 16:30:02 +0000 |
---|---|---|
committer | Johan Paulsson <gonz@users.sourceforge.net> | 2013-01-24 16:30:02 +0000 |
commit | 702a3875c5c7c5c937e55d50039ccb0c7bced754 (patch) | |
tree | ee41f8802ec6b7904de7921fb97fa7f262e129aa /tikzit/src/common/Edge.m | |
parent | 310d4379dd0f439e9a988c3202add12021384690 (diff) |
Anchor support for the parser and osx gui
Diffstat (limited to 'tikzit/src/common/Edge.m')
-rw-r--r-- | tikzit/src/common/Edge.m | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tikzit/src/common/Edge.m b/tikzit/src/common/Edge.m index 2514fc1..3e25888 100644 --- a/tikzit/src/common/Edge.m +++ b/tikzit/src/common/Edge.m @@ -39,6 +39,8 @@ source = nil; target = nil; edgeNode = nil; + sourceAnchor = [[NSString alloc] initWithString:@""]; + targetAnchor = [[NSString alloc] initWithString:@""]; return self; } @@ -389,6 +391,25 @@ [self didChangeValueForKey:@"hasEdgeNode"]; } +@synthesize sourceAnchor; +@synthesize targetAnchor; + +- (void)setSourceAnchor:(NSString *)_sourceAnchor{ + if(_sourceAnchor != nil){ + sourceAnchor = _sourceAnchor; + }else{ + sourceAnchor = @""; + } +} + +- (void)setTargetAnchor:(NSString *)_targetAnchor{ + if(_targetAnchor != nil){ + targetAnchor = _targetAnchor; + }else{ + targetAnchor = @""; + } +} + @synthesize data; - (void) insertObject:(GraphElementProperty*)gep inDataAtIndex:(NSUInteger)index { @@ -587,6 +608,8 @@ [source release]; [target release]; [data release]; + [sourceAnchor release]; + [targetAnchor release]; [super dealloc]; } |