Contents

spellServer(_:checkGrammarIn:language:details:)

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

Declaration

optional func spellServer(_ sender: NSSpellServer, checkGrammarIn stringToCheck: String, language: String?, details: AutoreleasingUnsafeMutablePointer<NSArray?>?) -> NSRange

Parameters

  • sender:

    Spell server satisfying a grammatical analysis request.

  • stringToCheck:

    String to analyze.

  • language:

    Language use in string. When nil, the language selected in the Spelling panel is used.

  • details:

    On output, dictionaries describing grammar-analysis details within the flagged grammatical unit. See the Nsspellserver class for information about these dictionaries.

Return Value

Location of the first flagged grammatical unit within string.

See Also

Check Grammar and Spelling in Strings