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
).
|
@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; |
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.