• 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: 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


  • Follow-Ups:
    • Re: Right way to get system preference values
      • From: Chris Parker <email@hidden>
  • Prev by Date: Re: cocoa-dev digest, Vol 1 #791 - 13 msgs
  • Next by Date: NSPreferencePane question
  • Previous by thread: Re: cocoa-dev digest, Vol 1 #791 - 13 msgs
  • Next by thread: Re: Right way to get system preference values
  • Index(es):
    • Date
    • Thread