Inches, Centimeters, and NSMeasurementUnit
Inches, Centimeters, and NSMeasurementUnit
- Subject: Inches, Centimeters, and NSMeasurementUnit
- From: Gonzalo Castro <email@hidden>
- Date: Thu, 25 Apr 2002 07:43:38 -0400
Hello,
The code below always returns "Inches" for me.
NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
id measuremenUnits = [defs objectForKey:@"NSMeasurementUnit"];
NSLog(@"measuremenUnits = %@", [measuremenUnits description]);
When I put Spanish or French at the top of the language list in
my System Preferences' International control panel, then logout
and log back in as the same user, I expect to get back "Centimeters"
but still get back "Inches". Has the world converted or am I doing
something wrong here? Am I wrong to assume that a change in
language should change the NSMeasurementUnit value in the
standardUserDefaults as well? I looked inside my
~/Library/Preferences/.GlobalPreferences.plist and didn't find
the key NSMeasurementUnit at all. I expected to find it with
a value of "Inches".
Thanks for you help!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.