Copyright ©1995 by NeXT Computer, Inc.  All Rights Reserved.

NXChangeSpelling



Adopted By: Text
Declared In: appkit/NXSpellChecker.h



Protocol Description

An object in the responder chain that can correct a misspelled word implements this protocol.

See also:  NXSpellChecker class



Instance Methods

changeSpelling:
changeSpelling:sender

Replaces with a corrected version the selected word in the object whose text is being checked.  This message is sent by the NXSpellChecker instance to the object whose text is being checked.  To get the corrected spelling, the receive asks the sender for the string value of its selected cell (visible to the user as the text field in the Spelling Panel).  The method replaces the selected portion of the text stream with the string that it gets from the NXSpellChecker.

Returns self when the replacement is successful, and nil otherwise (for example, if the selected text is in an object that is not editable).