• 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: Screen device name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screen device name?


  • Subject: Re: Screen device name?
  • From: Mike Paquette <email@hidden>
  • Date: Thu, 7 Sep 2006 06:48:23 -0700


On Sep 7, 2006, at 12:07 AM, Trygve Inda wrote:

Once you have the CGDirectDisplayID, you can call
CGDisplayIOServicePort to get an IOKit-friendly io_service_t.  You
can then pass this to IODisplayCreateInfoDictionary, which returns a
CFDictionary with a key kDisplayProductName, whose value is another
CFDictionary of localized display names (from IOKit/
IOGraphicsTypes.h: "eg. "en"="Color LCD", "en-GB"="Colour LCD"").

Id like to think there is a more direct way than this, but as far as
I can tell that is not the case.

spencer

How do I determine the en-GB, en-US etc. for the user's system (not the
language ID as an int, but the above strings?


Trygve

Given a CFArray of available language keys, to get a list ordered by the user's language preferences, call CFBundleCopyPreferredLocalizationsFromArray().


/* Get the preferred order of localizations */
orderLangKeys = CFBundleCopyPreferredLocalizationsFromArray ( langKeys );


See also http://developer.apple.com/documentation/MacOSX/Conceptual/ BPInternational/Articles/ChoosingLocalizations.html

Mike Paquette
email@hidden



_______________________________________________
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


References: 
 >Re: Screen device name? (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: CoreData issue
  • Next by Date: Objc - Exceptions
  • Previous by thread: Re: Screen device name?
  • Next by thread: Re: Screen device name?
  • Index(es):
    • Date
    • Thread