Next Page > Hide TOC

Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

NSChangeSpelling

Package
com.apple.cocoa.application
Companion guide

Overview

This interface is implemented by objects in the responder chain that can correct a misspelled word. See the NSSpellChecker class description for more information.

Tasks

Changing Spellings

Instance Methods

changeSpelling

Replaces the selected word in the receiver with a corrected version from the Spelling panel.

public abstract void changeSpelling(Object sender)

Discussion

This message is sent by the NSSpellChecker to the object whose text is being checked. To get the corrected spelling, ask sender for the string value of its selected cell (visible to the user as the text field in the Spelling panel). This method should replace the selected portion of the text with the string that it gets from the NSSpellChecker.



Next Page > Hide TOC


© 1997, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-02-01)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.