# NSSpellServer

borgheron@yahoo.com
scottc@net-community.com
Generated at 2025-02-13 06:02:40 +0000

Class to allow a spell checker to be available to other apps.

2001, 1996 Free Software Foundation, Inc.
Software documentation for the NSSpellServer class
Foundation/NSSpellServer.h
Description forthcoming.
delegate
Return the spell server delegate.
isWordInUserDictionaries:
word
caseSensitive:
flag
Checks to see if the word is in the user's dictionary. The user dictionary is a set of words learned by the spell service for that particular user combined with the set of ignored words in the current document.
registerLanguage:
language
byVendor:
vendor
This method vends the spell server to the Distributed Objects system so that it can be connected to by clients.
run
Initiate the run loop of this service. Once the spell server object is vended, this method is called so that the server can start responding to the messages sent by the client. These messages are passed on to the NSSpellServer instance's delegate.
setDelegate:
anObject
This method is used to set the delegate of the spellserver. When a spelling service is run the spell server is vended out to DO. The spelling service must instantiate an instance of this class and set itself to be the delegate. This allows the service to respond to messages sent by the client.
Software documentation for the NSObject(NSSpellServerDelegate) informal protocol
Foundation/NSSpellServer.h
This is an informal protocol since the NSSpellChecker will need to use a proxy object to call these methods. These methods need to be implemented by the spell service so that the NSSpellServer instance call call them when necessary.
spellServer:
sender
checkGrammarInString:
stringToCheck
language:
language
details:
details
Not implemented
spellServer:
sender
didForgetWord:
word
inLanguage:
language
Forgets the given word in the user's dictionary for the given language.
spellServer:
sender
didLearnWord:
word
inLanguage:
language
Records the new word in the user's dictionary for the given language.
spellServer:
sender
findMisspelledWordInString:
stringToCheck
language:
language
wordCount:
wordCount
countOnly:
countOnly

This method is called when the user begins spell checking the document. The parameters are: `sender` the spell server instance which invoked this method, `stringToCheck` this is the string which the spell service is going to attempt to find misspelled words in, `language` the language to check in, `wordCount` the number of words checked, and `countOnly` a flag which dictates if them method checks the spelling or just counts the words in the given string.

Returns a range for any word it finds that is misspelled.

spellServer:
sender
suggestCompletionsForPartialWordRange:
range
inString:
string
language:
language
Not implemented
spellServer:
sender
suggestGuessesForWord:
word
inLanguage:
language
Attempts to guess the correct spelling of `word`.