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

NSLocale and measurement systems


  • Subject: NSLocale and measurement systems
  • From: Ruotger Skupin <email@hidden>
  • Date: Tue, 13 Nov 2007 18:58:53 +0100

Hi,

I need to present a distance in my interface either as kilometers or miles.

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)?

What does NSLocaleMeasurementSystem return?

Roddi


P.S. What a mess: http://en.wikipedia.org/wiki/Mile

_______________________________________________

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


  • Follow-Ups:
    • Re: NSLocale and measurement systems
      • From: Deborah Goldsmith <email@hidden>
  • Prev by Date: Leopard real amount of RAM used by application
  • Next by Date: Re: Test Cases + Nib files
  • Previous by thread: re: Leopard real amount of RAM used by application
  • Next by thread: Re: NSLocale and measurement systems
  • Index(es):
    • Date
    • Thread