• 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
NSSpellChecker setLanguage:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSSpellChecker setLanguage:
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: How do I separate two concatenated archives in an NSData?
  • Next by Date: Endian-ness of "PkgInfo" file
  • Previous by thread: Re: How do I separate two concatenated archives in an NSData?
  • Next by thread: Re: NSSpellChecker setLanguage:
  • Index(es):
    • Date
    • Thread