Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Completely disable NSTextView spell checking

How can I disable spell checking for an NSTextView? In particular, the red lines that are automatically drawn. I know about the "Continuous Spell Checking" option in Xcode, and every option I have found in the documentation related to spell checking doesn't seem to take the red lines away.

like image 471
David Beck Avatar asked Aug 04 '12 05:08

David Beck


3 Answers

Select NSTextView (doubleClick in IB on it because NSTextView is in NSScrollView by default or select it in Document Outline) and go to Attributes Inspector -> Linguistics -> and uncheck Continous Spell Checking here:

Screenshot

Result:

enter image description here

like image 81
Justin Boo Avatar answered Nov 13 '22 00:11

Justin Boo


I don't know what you tried, but [self.textView setContinuousSpellCheckingEnabled:NO]; worked for me.

like image 30
rdelmar Avatar answered Nov 13 '22 00:11

rdelmar


After unsetting continuousSpellCheckingEnabled clean your build folder and run again. Seems as though it is holding onto the setting between builds (quite surprisingly!). Your observation that changing the property name solved the issue led me to this solution -- still an issue almost five years after you asked.

like image 1
Ben Flynn Avatar answered Nov 13 '22 01:11

Ben Flynn