Disabled NSTextView word completion popup in cocoa_tiger.
authorMark Sibly <blitzmunter@gmail.com>
Sun, 20 Sep 2015 07:30:46 +0000 (19:30 +1200)
committerMark Sibly <blitzmunter@gmail.com>
Sun, 20 Sep 2015 07:30:46 +0000 (19:30 +1200)
mod/maxgui.mod/cocoamaxgui.mod/cocoa.macos_tiger.m

index 452b9ddf853ff9207ecdd946c42b66ae7181a3b1..10f222877ee94f7072d371e57be802fe295d18f8 100644 (file)
@@ -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];
 }