Re: Screen device name?
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