Platforms to show: All Mac Windows Linux Cross-Platform

NSSpellCheckerMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Spell Checking MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The spell checker class.

The NSSpellChecker object is used by a client (e.g. a document in an application) to spell-check a given String.
There is only one NSSpellChecker instance per application (since spell-checking is interactive and you only have one mouse and one keyboard).

The string being spell-checked need only be valid for the duration of the call to checkSpellingOfString or countWordsInString.

Requires Mac OS X 10.2.

Constants

Constant Value Description
NSGrammarCorrections "NSGrammarCorrections" One of the key constants for the dictionaries in the details array.
NSGrammarRange "NSGrammarRange" One of the key constants for the dictionaries in the details array.
NSGrammarUserDescription "NSGrammarUserDescription" One of the key constants for the dictionaries in the details array.

Correction indicator type Constants

Constant Value Description
NSCorrectionIndicatorTypeDefault 0 The default indicator that shows a proposed correction.
Available in Mac OS X v10.7 and later.
NSCorrectionIndicatorTypeGuesses 2 Shows multiple alternatives from which the user may choose the appropriate spelling.
Available in Mac OS X v10.7 and later.
NSCorrectionIndicatorTypeReversion 1 Provides the option to revert to the original form after a correction has been made.
Available in Mac OS X v10.7 and later.

Response Constants

Constant Value Description
NSCorrectionResponseAccepted 1 The user accepted the correction.
Available in Mac OS X v10.7 and later.
NSCorrectionResponseEdited 4 After the correction was accepted, the user edited the corrected word (to something other than its original form.
Available in Mac OS X v10.7 and later.
NSCorrectionResponseIgnored 3 The user continued in such a way as to ignore the correction.
Available in Mac OS X v10.7 and later.
NSCorrectionResponseNone 0 No response was received from the user.
Available in Mac OS X v10.7 and later.
NSCorrectionResponseRejected 2 The user rejected the correction by dismissing the correction indicator.
Available in Mac OS X v10.7 and later.
NSCorrectionResponseReverted 5 After the correction was accepted, the user reverted the correction back to the original word.
Available in Mac OS X v10.7 and later.

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes


The items on this page are in the following plugins: MBS MacCocoa Plugin.


NSSpeechSynthesizerMBS   -   NSSplitViewMBS


The biggest plugin in space...