O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSSpellServer — Mac OS X 10.0

Synopsis

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).

image with no caption

@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;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required