diff options
Diffstat (limited to 'tikzit/src/common/Edge.m')
-rw-r--r-- | tikzit/src/common/Edge.m | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tikzit/src/common/Edge.m b/tikzit/src/common/Edge.m index cabf860..9b607e6 100644 --- a/tikzit/src/common/Edge.m +++ b/tikzit/src/common/Edge.m @@ -402,23 +402,26 @@ [self didChangeValueForKey:@"hasEdgeNode"]; } -@synthesize sourceAnchor; -@synthesize targetAnchor; - +- (NSString*) sourceAnchor { return sourceAnchor; } - (void)setSourceAnchor:(NSString *)_sourceAnchor{ + NSString *oldSourceAnchor = sourceAnchor; if(_sourceAnchor != nil){ sourceAnchor = [_sourceAnchor copy]; }else{ sourceAnchor = @""; } + [oldSourceAnchor release]; } +- (NSString*) targetAnchor { return targetAnchor; } - (void)setTargetAnchor:(NSString *)_targetAnchor{ + NSString *oldTargetAnchor = targetAnchor; if(_targetAnchor != nil){ targetAnchor = [_targetAnchor copy]; }else{ targetAnchor = @""; } + [oldTargetAnchor release]; } @synthesize data; |