• 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: NSLocale and measurement systems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSLocale and measurement systems (From: Ruotger Skupin <email@hidden>)

  • Prev by Date: Re: Subclassing best practice
  • Next by Date: Toolbars under Leopard and IB 3
  • Previous by thread: NSLocale and measurement systems
  • Next by thread: Re: Test Cases + Nib files
  • Index(es):
    • Date
    • Thread