关闭OS X 10.7 Lion的“自动更正”功能? [英] Turn off OS X 10.7 Lion's "auto-correct" feature programmatically?

查看:104
本文介绍了关闭OS X 10.7 Lion的“自动更正”功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OS X Lion在您输入时具有类似iPhone的自动更正功能。

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

此功能会干扰我的输入应用程式。使用我的应用程式的使用者不会希望系统开启 我需要关闭所有应用程式的所有自动更正功能,而不只是在我自己的 NSTextField 中。

This feature interferes with my typing app. The people using my app would not want it turned on at all, system wide. I need to turn off all auto-correct off for all apps, not just in my own NSTextField.

有什么办法让我检查/设置全局/系统自动更正功能到 OFF

Is there any way for me to check/set the global/system auto-correct feature to OFF? Or am I stuck basically providing a guided tutorial for how to turn it off?

对于Mac App Store,解决方案必须合法。

Solution must be legal for the Mac App Store.

推荐答案

这是在NSTextView?如果是这样,有几种方法可用于改变校正行为:

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.

这篇关于关闭OS X 10.7 Lion的“自动更正”功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆