Turn off OS X 10.7 Lion's “auto-correct” feature programmatically?

前端 未结 2 1302
感动是毒
感动是毒 2021-01-26 23:05

OS X Lion has an iPhone-like autocorrect feature as you\'re typing.

This feature interferes with my typing app. The people using my app would not want it turned on a

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-26 23:35

    Is this in an NSTextView? If so, there are several methods available to alter the correction behavior:

    - (void)setAutomaticSpellingCorrectionEnabled:(BOOL)flag
    - (void)setAutomaticTextReplacementEnabled:(BOOL)flag
    

    Please try those, they should be what you are looking for.

提交回复
热议问题