Localization + NSGlobalDomain + AppleMeasurementUnits?
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