Re: Right way to get system preference values
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.