home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / AppKit.framework / Versions / B / Headers / NSSpellProtocol.h < prev    next >
Text File  |  1996-10-17  |  1KB  |  25 lines

  1. /*
  2.         NSSpellProtocol.h
  3.     Application Kit
  4.     Copyright (c) 1990-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8. #import <Foundation/Foundation.h>
  9.  
  10. /*
  11. SpellCheckable objects can respond to this method if they want to support not only spell-checking, but spell correction.  This message is sent down the responder chain.  The receiver should ask the sender for its selectedCell's stringValue (the correct spelling of the word) and replace its selection if appropriate.
  12. */
  13.  
  14. @protocol NSChangeSpelling
  15. - (void)changeSpelling:(id)sender;
  16. @end
  17.  
  18. /*
  19. SpellCheckable objects can respond to this method if they wish to be able to ignore words.  This message is sent down the responder chain.  To enable ignoring you should implement this method like this: [[NSSpellChecker sharedSpellChecker] ignoreWord:[sender stringValue] inSpellDocumentWithTag:<document tag>].  Each document in your app which can be spell checked should have a unique tag.  This tag is used here to tell the spell checker what document to ignore the word in, and you also pass it as an argument to the checkSpellingOfString:... method when you initiate a spell check.  Unique tags can be generated by the NSSpellChecker factory with the +uniqueSpellDocumentTag method.
  20. */
  21.  
  22. @protocol NSIgnoreMisspelledWords
  23. - (void)ignoreSpelling:(id)sender;
  24. @end
  25.