简体   繁体   中英

Open “Spelling and grammar” window from objective-c osx

I'm implementing a menu to our Mac OSX application. I a menu item with the standard "Spelling and grammar" to be opened when clicking.

Can't seem to find anywhere info on how to open this window from code. I assume this window is standard in OSX rather then implemented by all applications.

https://developer.apple.com/library/mac/Documentation/Cocoa/Conceptual/SpellCheck/SpellCheck.html#//apple_ref/doc/uid/10000092-SW1

does not provide any information about opening the window but just how to spell-check.

NSSpellChecker使您可以访问spellingPanel ,然后可以像常规窗口一样打开(NSPanel是NSWindow的子类,因此您可以访问makeKeyAndOrderFront: ”之类的东西)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM