PDA

View Full Version : Disabling the default spellchecker in a Cocoa App




stormchasr
Sep 25, 2008, 12:25 AM
Hi, I'm new to Cocoa, Objective-C, Xcode, etc.

Hopefully this is a simple question-something basic I'm just overlooking. By default, the spellchecker is automatically enabled in cocoa apps when you run them. How do I disable the continuous spell checker or toggle it off when an application starts up?

It feels like there should be a checkbox or something somewhere in Interface Builder. Am I missing something here?



kainjow
Sep 25, 2008, 08:35 AM
NSTextView has a few useful methods:

toggleContinuousSpellChecking:
setContinuousSpellCheckingEnabled:
isContinuousSpellCheckingEnabled