• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSpellChecker -learnWord: how to specify LocalDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSpellChecker -learnWord: how to specify LocalDictionary


  • Subject: Re: NSSpellChecker -learnWord: how to specify LocalDictionary
  • From: Ross Carter <email@hidden>
  • Date: Wed, 21 Oct 2009 15:19:52 -0400

On Oct 17, 2009, at 6:06 PM, Ross Carter wrote:

In 10.6, there is a spell checking dictionary named LocalDictionary that contains words learned outside the context of a particular language.

How does one use NSSpellChecker -learnWord: and -unlearnWord: so that those methods write to LocalDictionary?

For other language dictionaries, one can send setLanguage: before sending learnWord:. But for LocalDictionary, there does not appear to be any language string associated with LocalDictionary.

I've tried sending nil, @"", and @"LocalDictionary" to setLanguage:, but -learnWord: still writes to my en dictionary.

The use case is for terms such as "developer.apple.com" that should be deemed correct in any language.


Evidently, there is no API for programmatically modifying the contents of LocalDictionary. I filed a bug.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSSpellChecker -learnWord: how to specify LocalDictionary (From: Ross Carter <email@hidden>)

  • Prev by Date: UINavigationBar tintColor property
  • Next by Date: Re: UINavigationBar tintColor property
  • Previous by thread: NSSpellChecker -learnWord: how to specify LocalDictionary
  • Next by thread: Calculating a total from a collection of numeric attributes
  • Index(es):
    • Date
    • Thread