summaryrefslogtreecommitdiff
path: root/tikzit/src/osx
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/osx')
-rw-r--r--tikzit/src/osx/PreambleController.m6
-rw-r--r--tikzit/src/osx/PreviewController.m4
2 files changed, 5 insertions, 5 deletions
diff --git a/tikzit/src/osx/PreambleController.m b/tikzit/src/osx/PreambleController.m
index ea95716..e09a3fc 100644
--- a/tikzit/src/osx/PreambleController.m
+++ b/tikzit/src/osx/PreambleController.m
@@ -123,7 +123,7 @@
if ([[toolbar selectedItemIdentifier] isEqualToString:[defaultToolbarItem itemIdentifier]]) {
[self setCurrentPreamble:@"default"];
[textView setBackgroundColor:ghostColor];
- } else if ([toolbar.selectedItemIdentifier isEqualToString:[customToolbarItem itemIdentifier]]) {
+ } else if ([[toolbar selectedItemIdentifier] isEqualToString:[customToolbarItem itemIdentifier]]) {
NSString *key = nil;
if ([selectionIndexes count]==1) {
int i = [selectionIndexes firstIndex];
@@ -133,8 +133,8 @@
[self setCurrentPreamble:key];
//NSLog(@"preamble set to %@", key);
} else {
- [self setCurrentPreamble:@"default"];
- //NSLog(@"preamble set to default");
+ [self setCurrentPreamble:@"custom"];
+ //NSLog(@"preamble set to custom");
}
[textView setBackgroundColor:[NSColor whiteColor]];
}
diff --git a/tikzit/src/osx/PreviewController.m b/tikzit/src/osx/PreviewController.m
index e54a91f..bd43c41 100644
--- a/tikzit/src/osx/PreviewController.m
+++ b/tikzit/src/osx/PreviewController.m
@@ -43,7 +43,7 @@ static PreviewController *preview = nil;
- (void)runLatex:(id)tikz {
// Only build one tex file at a time, so we don't get funky results.
- [latexLock lock];
+ //[latexLock lock];
[progressIndicator startAnimation:self];
int fnum = typesetCount++;
@@ -117,7 +117,7 @@ static PreviewController *preview = nil;
}
[progressIndicator stopAnimation:self];
- [latexLock unlock];
+ //[latexLock unlock];
}
- (void)buildTikz:(NSString*)tikz {