Re: NSLocale and measurement systems
Re: NSLocale and measurement systems
- Subject: Re: NSLocale and measurement systems
- From: Deborah Goldsmith <email@hidden>
- Date: Wed, 14 Nov 2007 13:26:01 -0800
On Nov 13, 2007, at 9:58 AM, Ruotger Skupin wrote:
There are two keys in NSLocale that indicate which measurement
system the user prefers: NSLocaleUsesMetricSystem and
NSLocaleMeasurementSystem.
As a "native speaker of the metric system" I'm not really sure what
to do with them.
If NSLocaleUsesMetricSystem returns NO can I automatically assume
american measurement units (i.e. usage of the statute mile)?
The short answer is yes. I won't bother with the long answer. :-)
What does NSLocaleMeasurementSystem return?
A string (enum-like) representation of the same information. I believe
the original thought was there might be choices other than "U.S." and
"Metric", but that hasn't happened.
Deborah Goldsmith
Internationalization, Unicode Liaison
Apple Inc.
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden