From eb53aad788509e1d26ee2d4b7ffaf6fd84eb8b81 Mon Sep 17 00:00:00 2001 From: Mark Sibly Date: Sun, 20 Sep 2015 19:30:46 +1200 Subject: [PATCH] Disabled NSTextView word completion popup in cocoa_tiger. --- mod/maxgui.mod/cocoamaxgui.mod/cocoa.macos_tiger.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mod/maxgui.mod/cocoamaxgui.mod/cocoa.macos_tiger.m b/mod/maxgui.mod/cocoamaxgui.mod/cocoa.macos_tiger.m index 452b9dd..10f2228 100644 --- a/mod/maxgui.mod/cocoamaxgui.mod/cocoa.macos_tiger.m +++ b/mod/maxgui.mod/cocoamaxgui.mod/cocoa.macos_tiger.m @@ -1502,6 +1502,8 @@ tableColumn:(NSTableColumn *)aTableColumn row:(int)row mouseLocation:(NSPoint)mo [self setAutomaticTextReplacementEnabled: NO]; if ([self respondsToSelector: @selector(setAutomaticDataDetectionEnabled:)]) [self setAutomaticDataDetectionEnabled: NO]; + + [self setContinuousSpellCheckingEnabled:NO]; return self; } @@ -1512,6 +1514,14 @@ tableColumn:(NSTableColumn *)aTableColumn row:(int)row mouseLocation:(NSPoint)mo [styles release]; [storage release]; } +//prevent 'word completion' popup when esc key hit with selected text... +-(NSArray*)textView: + (NSTextView*)textView + completions:(NSArray*)words + forPartialWordRange:(NSRange)charRange + indexOfSelectedItem:(NSInteger*)index{ + return nil; +} -(void)setHidden:(BOOL)flag{ [scroll setHidden:flag]; } -- 2.30.2