Protocol

NSSpellServerDelegate

The optional methods implemented by the delegate of a spell server.

Declaration

@protocol NSSpellServerDelegate

Topics

Check Grammar and Spelling in Strings

- spellServer:checkString:offset:types:options:orthography:wordCount:

Gives the delegate the opportunity to analyze both the spelling and grammar simultaneously, which is more efficient.

- spellServer:suggestGuessesForWord:inLanguage:

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

- spellServer:checkGrammarInString:language:details:

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

- spellServer:findMisspelledWordInString:language:wordCount:countOnly:

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

- spellServer:didForgetWord:inLanguage:

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

- spellServer:didLearnWord:inLanguage:

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

- spellServer:suggestCompletionsForPartialWordRange:inString:language:

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

- spellServer:recordResponse:toCorrection:forWord:language:

Notifies the spell checker of the users’s response to a correction.

Relationships

Inherits From

See Also

Spelling and Grammar

NSSpellServer

A server that your app uses to provide a spell checker service to other apps running in the system.