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: Ryan Dary <email@hidden>
- Date: Thu, 1 Nov 2001 03:57:23 -0800
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?
Thanks,
Ryan Dary
Mon, 29 Oct 2001 11:03:53 -0800
>
Ryan -
>
>
With a locale set, you should be able to ask for keys like
>
>
NSTimeFormatString
>
NSDateFormatString
>
NSShortDateFormatString
>
NSTimeDateFormatString
>
NSShortTimeDateFormatString
>
NSDecimalSeparator
>
NSThousandsSeparator
>
NSCurrencySymbol
>
>
from [NSUserDefaults standardUserDefaults].
>
>
.chris
>
>
On Sunday, October 28, 2001, at 02:44 PM, Ryan Dary wrote:
>
>
> I need to access how the system preferences stores the format string for
>
> numbers and dates. Is there a right way to do this? Are there any
>
> AppKit framework accessors for these values or do I have to poke around
>
> in the preferences?
>
>
>
>
>
> Thanks,
>
>
>
> Ryan Dary
>
> _______________________________________________
>
> cocoa-dev mailing list
>
> email@hidden
>
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev