Re: How to obtain measurement unit setting
Re: How to obtain measurement unit setting
- Subject: Re: How to obtain measurement unit setting
- From: Ricky Sharp <email@hidden>
- Date: Wed, 29 Dec 2004 13:15:16 -0600
On Wednesday, December 29, 2004, at 12:46PM, Sean McBride <email@hidden> wrote:
>Ricky Sharp (email@hidden) on Tue, Dec 28, 2004 01:47 PM said:
>
>>The key to use is AppleMeasurementUnits. I found it while reading the
>>following which mentions how NSRulerView honors the measurement units:
>
>There is also the Carbon API IsMetric(), which returns a boolean.
While I have no problem calling Carbon APIs (I'm already linking against the Carbon framework for other reasons), IsMetric is documented as working with the old 'itl0' resource.
I'm not sure if the contents of that resource would be guaranteed to be in sync with the system prefs. However, it could be the case where the implementation of IsMetric under Mac OS X obtains the AppleMeasurementUnits value. And it's just the 9.x implementation (CarbonLib) that works with the resource.
Because of these unknowns, I'll stick with the Cocoa solution. Thanks though for pointing this out.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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