Completely disable NSTextView spell checking

前端 未结 3 1205
庸人自扰
庸人自扰 2020-12-17 17:46

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

相关标签:
3条回答
  • 2020-12-17 18:20

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

    0 讨论(0)
  • 2020-12-17 18:24

    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.

    0 讨论(0)
  • 2020-12-17 18:25

    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

    0 讨论(0)
提交回复
热议问题