DekGenius.com
[ Team LiB ] Previous Section Next Section

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

figs/cocn_13106.gif

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

    [ Team LiB ] Previous Section Next Section