summaryrefslogtreecommitdiff
path: root/tikzit
diff options
context:
space:
mode:
authorJohan Paulsson <gonz@badcode.net>2014-03-25 20:53:30 +0000
committerJohan Paulsson <gonz@badcode.net>2014-03-25 20:53:30 +0000
commit53009ac3c49cab59f4e5384d0500a5729e847555 (patch)
tree7cd91928b6b10d725601cf822fe507bd8ad20706 /tikzit
parent1e65c32b799b7ca262f266737a867240eeb451f8 (diff)
minor semantical errors
Diffstat (limited to 'tikzit')
-rw-r--r--tikzit/src/osx/AppDelegate.h2
-rw-r--r--tikzit/src/osx/AppDelegate.m2
-rw-r--r--tikzit/src/osx/StylePaletteController.h6
3 files changed, 5 insertions, 5 deletions
diff --git a/tikzit/src/osx/AppDelegate.h b/tikzit/src/osx/AppDelegate.h
index 67389e4..92d9add 100644
--- a/tikzit/src/osx/AppDelegate.h
+++ b/tikzit/src/osx/AppDelegate.h
@@ -28,7 +28,7 @@
#import "PreambleController.h"
#import "PreviewController.h"
#import "GraphicsView.h"
-#import "PreferenceController.h";
+#import "PreferenceController.h"
@interface AppDelegate : NSObject {
NSMapTable *table;
diff --git a/tikzit/src/osx/AppDelegate.m b/tikzit/src/osx/AppDelegate.m
index 35484b7..94f5507 100644
--- a/tikzit/src/osx/AppDelegate.m
+++ b/tikzit/src/osx/AppDelegate.m
@@ -110,7 +110,7 @@
}
- (IBAction)togglePreamble:(id)sender {
- [self toggleController:preambleController];
+ [self toggleController:(NSWindowController *) preambleController];
}
- (IBAction)togglePreferences:(id)sender {
diff --git a/tikzit/src/osx/StylePaletteController.h b/tikzit/src/osx/StylePaletteController.h
index 0242b61..05f0684 100644
--- a/tikzit/src/osx/StylePaletteController.h
+++ b/tikzit/src/osx/StylePaletteController.h
@@ -45,13 +45,13 @@
@property (strong) NSMutableArray *nodeStyles;
@property (strong) NSMutableArray *edgeStyles;
-@property BOOL documentActive;
+@property (readonly) BOOL documentActive;
@property (strong) NodeStyle *activeNodeStyle;
@property (strong) EdgeStyle *activeEdgeStyle;
@property (copy) NSString *displayedNodeStyleCategory;
@property (copy) NSString *displayedEdgeStyleCategory;
-@property (weak) NSPredicate *displayedNodeStylePredicate;
-@property (weak) NSPredicate *displayedEdgeStylePredicate;
+@property (readonly) NSPredicate *displayedNodeStylePredicate;
+@property (readonly) NSPredicate *displayedEdgeStylePredicate;
//@property NSString *nodeLabel;