Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSSpellCheckerMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Spell Checking MBS MacCocoa Plugin 7.1 Yes No No Yes, macOS only No
Function: The spell checker class.
Notes:
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.

Feedback, Comments & Corrections

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 which use this class:


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


NSSpeechSynthesizerMBS   -   NSStatusBarButtonMBS




Links
MBS Xojo Chart Plugins