Protocol

NSSpellServerDelegate

The NSSpellServerDelegate protocol defines the optional methods implemented by delegates of NSSpellServer objects.

Symbols

Check Grammar and Spelling in Strings

func spellServer(NSSpellServer, suggestGuessesForWord: String, inLanguage: String)

Gives the delegate the opportunity to suggest guesses to the sender for the correct spelling of the given misspelled word in the specified language.

func spellServer(NSSpellServer, checkGrammarIn: String, language: String?, details: AutoreleasingUnsafeMutablePointer<NSArray?>?)

Gives the delegate the opportunity to customize the grammatical analysis of a given string.

func spellServer(NSSpellServer, findMisspelledWordIn: String, language: String, wordCount: UnsafeMutablePointer<Int>, countOnly: Bool)

Asks the delegate to search for a misspelled word in a given string, using the specified language, and marking the first misspelled word found by returning its range within the string.

Managing the Spelling Dictionary

func spellServer(NSSpellServer, didForgetWord: String, inLanguage: String)

Notifies the delegate that the sender has removed the specified word from the user’s list of acceptable words in the specified language.

func spellServer(NSSpellServer, didLearnWord: String, inLanguage: String)

Notifies the delegate that the sender has added the specified word to the user’s list of acceptable words in the specified language.

func spellServer(NSSpellServer, suggestCompletionsForPartialWordRange: NSRange, in: String, language: String)

This delegate method returns an array of possible word completions from the spell checker, based on a partially completed string and a given range.

Relationships

Inherits From