Spell Checking

The Application Kit contains support for spell checking of any selectable text. A single instance of the NSSpellChecker class provides access to system-wide, spellchecking services that can be used with the Application Kit’s text objects. A standard panel for spell checking is also provided to let users select alternate spellings or add words to the system-wide dictionaries. Spelling in multiple languages is supported, but Mac OS X only ships with an American English dictionary. When additional dictionaries are added to a system, NSSpellChecker uses them automatically, based on user language preferences.

The text classes provided by the Application Kit already support spell checking, and a Spelling submenu is provided by default ...

Get Cocoa® Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.