Learning a word with the spell checker

  • hi!

    We're using NSSpellchecker without the UI from a cross platform app.
    Is there any way to tell the spell checking system to learn a word? I
    see unlearnWord: and ignore word APIs, but none to add a word to the
    dictionary.

    Steve
  • > We're using NSSpellchecker without the UI from a cross platform
    > app.  Is there any way to tell the spell checking system to learn a
    > word? I see unlearnWord: and ignore word APIs, but none to add a
    > word to the dictionary.

    It's an undocumented method, but as far back as 10.3.9 NSSpellChecker
    will respond to "learnWord:"

    ~Martin
  • On Nov 1, 2007, at 9:43 PM, Martin Wierschin wrote:

    >> We're using NSSpellchecker without the UI from a cross platform
    >> app.  Is there any way to tell the spell checking system to learn a
    >> word? I see unlearnWord: and ignore word APIs, but none to add a
    >> word to the dictionary.
    >
    > It's an undocumented method, but as far back as 10.3.9
    > NSSpellChecker will respond to "learnWord:"

    As of Leopard, it is now documented.  See the Leopard AppKit release
    notes for details.

    Douglas Davidson
  • >> It's an undocumented method, but as far back as 10.3.9
    >> NSSpellChecker will respond to "learnWord:"
    >
    > As of Leopard, it is now documented.  See the Leopard AppKit
    > release notes for details.

    The NSSpellChecker header file may, but the HTML documentation
    doesn't. I've filed a report via the online documentation feedback form.

    ~Martin
  • On Nov 5, 2007 6:28 PM, Martin Wierschin <martin...> wrote:
    >>> It's an undocumented method, but as far back as 10.3.9
    >>> NSSpellChecker will respond to "learnWord:"
    >>
    >> As of Leopard, it is now documented.  See the Leopard AppKit
    >> release notes for details.
    >
    > The NSSpellChecker header file may, but the HTML documentation
    > doesn't. I've filed a report via the online documentation feedback form.

    Search the following page for NSSpellChecker.

    <http://developer.apple.com/releasenotes/Cocoa/AppKit.html>

    -Shawn
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today