• 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
Inches, Centimeters, and NSMeasurementUnit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Inches, Centimeters, and NSMeasurementUnit
      • From: Piers Uso Walter <email@hidden>
    • Re: Inches, Centimeters, and NSMeasurementUnit
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Where to put dataSource routines
  • Next by Date: Re: NSTextView and First Responder
  • Previous by thread: Re: Varying Row Heights
  • Next by thread: Re: Inches, Centimeters, and NSMeasurementUnit
  • Index(es):
    • Date
    • Thread