• 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: Wed, 14 Nov 2001 01:51:37 -0800

Thanks for all the help on this so far...

So I was able to do this via code for a single edit field, but I have a
question now about setting up formatters in IB. Is there some way that I
can set it up in IB so that it always uses the appropriate format string,
as the user has set in the control panels?

This is important because I can't figure out how to do it at runtime for
the NSTableView cells. There is a whole column, which I applied a
formatter to in IB, however I need to make it work for whatever the user
settings are, not a static format string.

Any ideas?

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


  • Prev by Date: Re: Support for split panes?
  • Next by Date: Re: Making SEARCH work for you... Re: Support for split panes?
  • Previous by thread: Re: Right way to get system preference values
  • Next by thread: NSPreferencePane question
  • Index(es):
    • Date
    • Thread