From: Mark Sibly Date: Sun, 20 Sep 2015 07:30:46 +0000 (+1200) Subject: Disabled NSTextView word completion popup in cocoa_tiger. X-Git-Tag: v151~10 X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=eb53aad788509e1d26ee2d4b7ffaf6fd84eb8b81;p=blitzmax.git Disabled NSTextView word completion popup in cocoa_tiger. --- 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]; }