Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
很像Moom在应用程序中扩展了 NSWindow 的关闭/打开/最小化功能。是否可以访问 OSX 拼写系统的 API?
更具体地说......是否可以在出现拼写错误时挂钩系统范围的事件?
编辑 我猜如果有它会通过辅助功能API ...
为此,您可以使用NSSpellChecker。或者,如果您只想添加常规拼写检查,您可以为大多数文本输入字段启用拼写检查。
[textView setContinuousSpellCheckingEnabled:YES];
下面的脚本就像一个 sharm 一样工作:
<script type="text/javascript"> document.write('<scr'+'ipt type="text/javascript">alert("werwer")</sc'+'ript>'); </scrip