Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Localization + NSGlobalDomain + AppleMeasurementUnits?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.