home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / NeXTanswers / OpenStepSpec_rtf / ApplicationKit / Classes / NSSpellServer.rtf < prev    next >
Encoding:
Text File  |  1994-07-01  |  4.7 KB  |  87 lines

  1. {\rtf0\ansi\paperw16228 \paperh18648 \margl-907 \margr0 \margt0 \margb0 {\fonttbl\f0\fswiss Helvetica;\f1\froman Times;\f2\fmodern Courier;\f3\ftech Symbol;\f4\froman Palatino;}
  2. {\stylesheet{\s0 \li100 \fi0 \ri1007 \ql   1Head;}
  3. {\s1 \li100 \fi0 \ri1007 \ql   ClassName;}
  4. {\s2 \li2872 \fi-2771 \ri1007 \ql \tx2872   ConformsTo;}
  5. {\s3 \li2872 \fi-2771 \ri1007 \ql   DeclaredIn;}
  6. {\s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030   Description;}
  7. {\s5 \li7030 \fi-5796 \ri1007 \ql   DescriptionPart;}
  8. {\s6 \li0 \fi0 \ri0 \ql \tx-25 \tx8290 \tx9172   Footer;}
  9. {\s7 \li2872 \fi-2771 \ri1007 \ql \tx2872   InheritsFrom;}
  10. {\s8 \li100 \fi0 \ri1007 \ql   Summary;}
  11. }
  12. \li0 \fi0 \ri0 \ql \sb0 \f1 \fs24 
  13. (Preliminary Documentation) Copyright \f3 \'e3\f1 1994 by NeXT Computer, Inc.  All Rights Reserved.\
  14. \
  15. \s0 \li100 \fi0 \ri1007 \ql \f0 \b \fs36 \fs16 \
  16. \
  17. \
  18. \
  19. \
  20. \
  21. \
  22. \fs36 NSSpellServer \
  23. \pard \s7 \li2872 \fi-2771 \ri1007 \ql \tx2872 \f1 \b0 \fs28 \fs16 \
  24. \
  25. \
  26. \fs28 \f0 \b \fs28 Inherits From:    \b0 \fs28 \f1 NSObject \
  27. \fs16 \
  28. \fs28 \s3 \fs16 \fs28 \f0 \b \fs28 Declared In:    \b0 \fs28 \f1 appkit/NSSpellServer.h \
  29. \fs16 \
  30. \fs28 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs28 \fs16 \
  31. \
  32. \fs28 Checking in Your Service \
  33. \fs16 \
  34. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (BOOL)\b registerLanguage:\b0 (NSString *)\i language\i0     Registers a spelling server for \i language\i0  by \i vendor\i0 .\
  35. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \b byVendor:\b0 (NSString *)\i vendor\i0     \
  36. \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  37. \
  38. \
  39. \fs28 Assigning a Delegate \
  40. \fs16 \
  41. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (id)\b delegate\b0     Returns the NSSpellServer\'27s delegate. \
  42. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setDelegate:\b0 (id)\i anObject\i0     Sets the delegate of the NSSpellServer. \
  43. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  44. \
  45. \
  46. \fs28 Running the Service \
  47. \fs16 \
  48. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (void)\b run\b0     Makes the NSSpellServer start listening for spell-checking requests.  This method should not return\
  49. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  50. \
  51. \
  52. \fs28 Checking User Dictionaries \
  53. \fs16 \
  54. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (BOOL)\b isWordInUserDictionaries:\b0 (NSString *)\i word\
  55. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \i0 \b caseSensitive:\b0 (BOOL)\i flag\i0     Returns whether \i word\i0  is in any open user dictionary;  the search is case-sensitive if \i flag\i0  is YES.\
  56. \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  57. \
  58. \
  59. \fs28 Methods Implemented by the Delegate \
  60. \fs16 \
  61. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (NSRange)\b spellServer:\b0 (NSSpellServer *)\i sender\i0     Search for a mispelled word in \i stringToCheck\i0 , using\
  62. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \b findMisspelledWordInString:        \b0 \i language\i0 , and marking the first\b  \b0 misspelled word found \
  63.      (NSString *)\i stringToCheck       \i0         by returning its range within the string object.  In \
  64. \b language:\b0 (NSString  *)\i language\i0         \i wordCount\i0  return by reference the number of words\
  65. \b wordCount:\b0 (int *)\i wordCount\i0         from the beginning of the string object until the \
  66. \b countOnly:\b0 (BOOL)\i countOnly\i0          misspelled word (or the end-of-string).  If \i countOnly\i0  is YES,  just count the words in the string object;  do not spell-check.  Send \b isWordInUserDictionaries:caseSensitive:\b0  to the spelling server to  determine if \i word\i0  exists in the user\'27s language dictionaries.\
  67. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 {\f3 -} (NSArray *)\b spellServer:\b0 (NSSpellServer *)\i sender\i0     Search for alternatives to the misspelled \i word\i0  in\
  68. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \b suggestGuessesForWord:\b0 (NSString *)\i word\i0         \i language\i0 .   Return guesses as an array of string objects.\
  69. \b inLanguage:\b0 (NSString *)\i language\i0       \
  70. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 {\f3 -} (void)\b spellServer:\b0 (NSSpellServer *)\i sender\i0     Notifies the delegate of a \i word\i0  added to the user\'27s hidden\
  71. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \b didLearnWord:\b0 (NSString *)\i word\i0         word list.  \
  72. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 {\f3 -} (void)\b spellServer:\b0 (NSSpellServer *)\i sender\i0     Notifies the delagte of a \i word\i0  removed from the user\'27s\
  73. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \b didForgetWord:\b0 (NSString *)\i word\i0          hidden word list.  \
  74. \
  75. \pard \s0 \li100 \fi0 \tx478 \tx856 \tx1234 \fs28 \fs16 \
  76. \
  77. \fs28 \
  78. \fs16 \
  79. \
  80. \fs28 \ri1007 \fs16 \fs28 \
  81. \fs16 \
  82. \
  83. \fs28 \fs16 \fs28 \
  84. \fs16 \
  85. \
  86. \fs28 }
  87.