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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to