• 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
Localization + NSGlobalDomain + AppleMeasurementUnits?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Localization + NSGlobalDomain + AppleMeasurementUnits?


  • Subject: Localization + NSGlobalDomain + AppleMeasurementUnits?
  • From: Mark Dawson <email@hidden>
  • Date: Sun, 2 Jan 2005 09:57:03 -0800

A few questions about NSGlobalDomain, localization, AppleMeasurementUnits

(1) When I first (from terminal) did a "defaults read NSGlobalDomain", the "AppleMeasurementUnits" variable wasn't there. Only when I set my unit to Metric did the variable appear.

My question: if I did the "[[NSUserDefaults standardUserDefaults] objectForKey:@"AppleMeasurementUnits"]" when it wasn't set yet, what would be my return value (would I still get "Inches"?).

(1b) I'm not sure how to clear that variable to test it…

(2) The two values that I saw were "Inches" and "Centimeters".

(a) Is there any way to tell what the possible values could be? I couldn't locate any documentation or .h file that listed them.
(b) Are these terms localized (i.e., "Inches" changes to "xxxx" in Chinese?)
(c) (a+b) The overriding question: How do I determine what the measurement units are/is there a way that doesn't have be localized to tell what the measurement units are?


_______________________________________________
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


  • Follow-Ups:
    • Re: Localization + NSGlobalDomain + AppleMeasurementUnits?
      • From: Darkshadow <email@hidden>
    • Re: Localization + NSGlobalDomain + AppleMeasurementUnits?
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Cocoa Bindings and Structures
  • Next by Date: Re: Localization + NSGlobalDomain + AppleMeasurementUnits?
  • Previous by thread: Re: Not getting socket connected notification from NSFileHandle
  • Next by thread: Re: Localization + NSGlobalDomain + AppleMeasurementUnits?
  • Index(es):
    • Date
    • Thread