Deprecated NSSpellChecker Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in Mac OS X v10.5

forgetWord:

Remove this word from the spelling dictionary. (Deprecated in Mac OS X v10.5. Use unlearnWord: instead.)

- (void)forgetWord:(NSString *)word

Parameters
word

The word to remove.

Availability
Declared In
NSSpellChecker.h

Deprecated in Mac OS X v10.6

guessesForWord:

Returns an array of suggested spellings for the misspelled word. (Deprecated in Mac OS X v10.6. Use guessesForWordRange:inString:language:inSpellDocumentWithTag: instead.)

- (NSArray *)guessesForWord:(NSString *)word

Parameters
word

A misspelled word.

Return Value

An array of suggested spellings for the word.

Discussion

If word contains all capital letters, or its first letter is capitalized, the suggested words are capitalized in the same way.

Availability
Related Sample Code
Declared In
NSSpellChecker.h


© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-07-08)