Contents

spellServer(_:suggestCompletionsForPartialWordRange:in: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.

Declaration

optional func spellServer(_ sender: NSSpellServer, suggestCompletionsForPartialWordRange range: NSRange, in string: String, language: String) -> [String]?

Parameters

  • sender:

    The NSSpellServer object that sent this message.

  • range:

    The range of the partially completed word.

  • string:

    The string containing the partial word range.

  • language:

    The language to use for the completion.

Return Value

An array of NSString objects indicating possible completions.

See Also

Related Documentation

Managing the Spelling Dictionary