AppleMetricUnits undefined in GlobalPreferences.plist for new user accounts
AppleMetricUnits undefined in GlobalPreferences.plist for new user accounts
- Subject: AppleMetricUnits undefined in GlobalPreferences.plist for new user accounts
- From: Steven Vandeweghe <email@hidden>
- Date: Mon, 18 Jun 2007 21:20:26 +0200
My application needs to know the user's selection for Measurement
Units in the International panel in System Preferences.
It does that through [[NSUserDefaults standardUserDefaults]
boolForKey:@"AppleMetricUnits"].
After some testing I found out that when I create a new user account,
the GlobalPreferences.plist does not contain the AppleMetricUnits
default. This default, along with AppleMeasurementUnits, only shows
up in the GlobalPreferences.plist after I change the setting in
System Preferences.
Is there another reliable way to find out if a user account is set to
Metric or U.S. when AppleMetricUnits isn't available (yet)? I could
probably make a guess based on the user's country, but that wouldn't
be 100% accurate.
Thanks for your help,
Steven
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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