NSSpellChecker setLanguage:
NSSpellChecker setLanguage:
- Subject: NSSpellChecker setLanguage:
- From: Eric Slosser <email@hidden>
- Date: Fri, 13 Jan 2006 16:09:16 -0500
I believe [NSSpellChecker setLanguage:] takes its parameter as a "language ID designator" or "locale ID designator" or sometimes even a plain string eg, "English" (but "British English" doesn't fly). I see (on 10.4.x at least) it returning a "locale ID designator" when asked via "language:". So "locale ID designator" seems like the preferred format for setLanguage:'s parameter.
Can someone confirm?
I tried passing in @"zh-Hant" and "zh-TW", and setLanguage: returned NO, but I suspect that's because I don't have a dictionary for traditional Chinese. How can I find out what dictionaries ARE installed?
Also, how can I map from a "locale ID designator" to the string that appears in the spelling panel's popup menu? (Ignore the case of multiple spell servers supporting the same language, which appends " (vendor)" to the string.) I've tried CFLocalCopyDisplayNameForPropertyValue( CFLocaleCopyCurrent(), kCFLocaleIdentifier, <various locale ids> ), but that's not it.
--
//-------------------------------------------------
email@hidden virtual-fx, inc. 617 314-9400
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden