• 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
Re: Right way to get system preference values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Right way to get system preference values


  • Subject: Re: Right way to get system preference values
  • From: Chris Parker <email@hidden>
  • Date: Thu, 1 Nov 2001 09:35:10 -0800

Ryan -

The list of keys and what they return are listed at

http://developer.apple.com/techpubs/macosx/Cocoa/Reference/Foundation/ObjC_classic/
Classes/NSUserDefaults.html

in the "Constants" section - there's a whole table with the description of what each key's value represents. In the case of money, you're probably looking for the NSThousandsSeparator, NSPositiveCurrencyFormatString, and NSNegativeCurrencyFormatString keys.

With a locale set, you can just ask the [NSUserDefaults standardUserDefaults] object for these keys directly as if they were any other preference.

.chris

On Thursday, November 1, 2001, at 03:57 AM, Ryan Dary wrote:

Okay, Can you tell me where this is documented so I can learn more about
using these keys. Also, is there some kind of number format string
constant for the users specified way a money value would look? So I can
give a float value, and it returns the appropriate string for money values?

--
Chris Parker <email@hidden>
Cocoa Frameworks Engineer
Catapultum habeo. Nisi pecuniam omnem mihi dabis, ad caput tuum
saxum immane mittam.


References: 
 >Re: Right way to get system preference values (From: Ryan Dary <email@hidden>)

  • Prev by Date: Newbie doc question
  • Next by Date: RE: NSPreferencePane question
  • Previous by thread: Re: Right way to get system preference values
  • Next by thread: Re: Right way to get system preference values
  • Index(es):
    • Date
    • Thread