From 4a835733e6c7825b049dc28f55a95f7a980f8274 Mon Sep 17 00:00:00 2001 From: Mark Onyschuk Date: Fri, 9 Aug 2013 07:33:50 -0400 Subject: [PATCH] Disable NSTextView substitutions. Substitutions like smart quotes mangle both typed and pasted grammars, causing the app to crash on what would otherwise be valid input. --- ParserGenApp/PGDocument.m | 1 + 1 file changed, 1 insertion(+) diff --git a/ParserGenApp/PGDocument.m b/ParserGenApp/PGDocument.m index 2f9f99b..c47c3be 100644 --- a/ParserGenApp/PGDocument.m +++ b/ParserGenApp/PGDocument.m @@ -72,6 +72,7 @@ - (NSString *)windowNibName { - (void)windowControllerDidLoadNib:(NSWindowController *)wc { [super windowControllerDidLoadNib:wc]; + [_textView setEnabledTextCheckingTypes:0]; [_textView setFont:[NSFont fontWithName:@"Monaco" size:12.0]]; }