Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSSpellCheckerMBS class.

Previous items

NSSpellCheckerMBS.unlearnWord(word as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Spell Checking MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Tells the spell checker to unlearn a given word.

Available in Mac OS X v10.5 and later.
Same as the older forgetWord.

NSSpellCheckerMBS.updatePanels

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Spell Checking MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Updates the available panels to account for user changes.

This method should be called when a client changes some relevant setting, such as what kind of spelling, grammar checking, or substitutions it uses.

Available in Mac OS X v10.6 and later.

NSSpellCheckerMBS.updateSpellingPanelWithGrammarString(lang as string, detail as dictionary)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Spell Checking MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Specifies a grammar-analysis detail to highlight in the Spelling panel.

problemString: Problematic grammatical unit identified by checkGrammarOfString.
detail: One of the grammar-analysis details provided by checkGrammarOfString.

Available in Mac OS X v10.5 and later.

NSSpellCheckerMBS.updateSpellingPanelWithMisspelledWord(word as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Spell Checking MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Updates the panel with the word.

The checkSpellingOfString methods return the range of the misspelled word found. It is up to the client to select that word in their document and to cause the spelling panel to update itself to reflect the found misspelling. Clients can call updateSpellPanelWithMisspelledWord to insure that the spell panel is up to date.

Some examples using this method:

NSSpellCheckerMBS.userPreferredLanguages as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Spell Checking MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Provides a subset of the available languages to be used for spell checking.

Returns an array containing the user's preferred languages for spell checking. The order is set in the system preferences.

If automaticallyIdentifiesLanguages is true, then text checking will automatically use this method as appropriate; otherwise, it will use the language set by Language property.

The older checkSpellingOfString and checkGrammarOfString methods will use the language set by Language property, if they are called with an empty language argument.

Available in Mac OS X v10.6 and later.

NSSpellCheckerMBS.userQuotesArrayForLanguage(lang as string) as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Spell Checking MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the default values for quote replacement.
Example
dim n as new NSSpellCheckerMBS

dim en(-1) as string = n.userQuotesArrayForLanguage("en")

MsgBox Join(en," ")

An array of quote replacements used by the NSTextCheckingQuotesKey key-value pair.

Available in Mac OS X v10.6 and later.

NSSpellCheckerMBS.userReplacementsDictionary as dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Spell Checking MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the dictionary used when replacing words.

The key-value pairs in this dictionary are used by the NSTextCheckingQuotesKey when replacing characters and words.

Available in Mac OS X v10.6 and later.

NSSpellCheckerMBS.WordFieldValue as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Spell Checking MBS MacCocoa Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The word textfield content string.

(Read and Write computed property)

Some examples using this property:

Previous items

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


💬 Ask a question or report a problem
The biggest plugin in space...