summaryrefslogtreecommitdiff
path: root/tikzit/src/osx/NodeLayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/osx/NodeLayer.h')
-rw-r--r--tikzit/src/osx/NodeLayer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tikzit/src/osx/NodeLayer.h b/tikzit/src/osx/NodeLayer.h
index dfe05e8..d2a943b 100644
--- a/tikzit/src/osx/NodeLayer.h
+++ b/tikzit/src/osx/NodeLayer.h
@@ -30,7 +30,7 @@
#import "NodeSelectionLayer.h"
@interface NodeLayer : CALayer {
- Node *node;
+ Node *__weak node;
Shape *shape;
CGMutablePathRef path;
float textwidth;
@@ -42,10 +42,10 @@
BOOL dirty; // need to rebuild CGBezierPath of the shape
}
-@property Node *node;
+@property (weak) Node *node;
@property (assign) NSPoint center;
@property (assign) BOOL rescale;
-@property (retain) NodeSelectionLayer *selection;
+@property (strong) NodeSelectionLayer *selection;
@property (readonly) CGMutablePathRef path;
- (id)initWithNode:(Node*)n transformer:(Transformer*)t;