diff options
author | Johan Paulsson <gonz@badcode.net> | 2014-03-23 02:48:06 +0000 |
---|---|---|
committer | Johan Paulsson <gonz@badcode.net> | 2014-03-23 02:48:06 +0000 |
commit | 5532f8878b7219720de6145eabbe57efb894957c (patch) | |
tree | 25e3ce1d092bc3e57096f63989e98409870d3e9b /tikzit/src/osx/TikzSourceController.h | |
parent | 2d6b88d5d016237acbc8cb63f2cf2477ccfe9e69 (diff) |
Converting from GC to ARC
This should only be for the osx specific code as all common files are left out. Hopefully this shouldn't introduce any problems on the other systems.
Diffstat (limited to 'tikzit/src/osx/TikzSourceController.h')
-rw-r--r-- | tikzit/src/osx/TikzSourceController.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tikzit/src/osx/TikzSourceController.h b/tikzit/src/osx/TikzSourceController.h index 3408d9f..84d36da 100644 --- a/tikzit/src/osx/TikzSourceController.h +++ b/tikzit/src/osx/TikzSourceController.h @@ -27,17 +27,17 @@ #import "ParseErrorView.h" @interface TikzSourceController : NSObject { - GraphicsView *graphicsView; - NSTextView *sourceView; + GraphicsView *__weak graphicsView; + NSTextView *__unsafe_unretained sourceView; NSAttributedString *source; - NSTextField *status; + NSTextField *__weak status; NSDictionary *textAttrs; NSColor *successColor; NSColor *failedColor; - NSTextField *errorMessage; - ParseErrorView *errorNotification; + NSTextField *__weak errorMessage; + ParseErrorView *__weak errorNotification; - NSUndoManager *documentUndoManager; + NSUndoManager *__weak documentUndoManager; BOOL tikzChanged; BOOL justUndid; @@ -46,14 +46,14 @@ } @property BOOL tikzChanged; -@property IBOutlet GraphicsView *graphicsView; -@property IBOutlet NSTextView *sourceView; -@property IBOutlet NSTextField *status; -@property NSUndoManager *documentUndoManager; +@property (weak) IBOutlet GraphicsView *graphicsView; +@property (unsafe_unretained) IBOutlet NSTextView *sourceView; +@property (weak) IBOutlet NSTextField *status; +@property (weak) NSUndoManager *documentUndoManager; @property (copy) NSAttributedString *source; @property (copy) NSString *tikz; -@property IBOutlet ParseErrorView *errorNotification; -@property IBOutlet NSTextField *errorMessage; +@property (weak) IBOutlet ParseErrorView *errorNotification; +@property (weak) IBOutlet NSTextField *errorMessage; - (void)updateTikzFromGraph; - (void)graphChanged:(NSNotification*)n; |