NSSpellServer Mac OS X 10.0

This class is used by applications to register a custom spellchecker with the operating system. Developers can use this class to create spellchecking services for all applications that use Cocoa's spellchecking services (through the class NSSpellChecker).


@interface NSSpellServer : NSObject
 // Accessor Methods
   - (void)setDelegate:(id)anObject;
   - (id)delegate;
 // Instance Methods
   - (BOOL)isWordInUserDictionaries:(NSString *)word caseSensitive:(BOOL)flag;
   - (BOOL)registerLanguage:(NSString *)language byVendor:(NSString *)vendor;
   - (void)run;
// Methods Implemented by the Delegate
   - (void)spellServer:(NSSpellServer *)sender didForgetWord:(NSString *)word inLanguage:(NSString *)language;
   - (void)spellServer:(NSSpellServer *)sender didLearnWord:(NSString *)word inLanguage:(NSString *)language;
   - (NSRange)spellServer:(NSSpellServer *)sender findMisspelledWordInString:(NSString *)stringToCheck
        language:(NSString *)language wordCount:(int *)wordCount countOnly:(BOOL)countOnly;
   - (NSArray *)spellServer:(NSSpellServer *)sender suggestGuessesForWord:(NSString *)word
        inLanguage:(NSString *)language;

    Part II: API Quick Reference
    Chapter 13. Foundation Classes