• 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
Getting the NSDateFormatter strings from the user's preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the NSDateFormatter strings from the user's preferences


  • Subject: Getting the NSDateFormatter strings from the user's preferences
  • From: James Bucanek <email@hidden>
  • Date: Wed, 18 May 2005 16:14:15 -0700

Greetings,

Here's my second, annoying, question for the day.  Where I can get the date and time formatting strings set by the user in the International Preferences Pane?

And if you answer [NSUserDefaults standardUserDefaults], you'd be wrong.  These are not the formats set in the System Preferences.  (I even dumped every key in the standardUserDefaults dictionary to the console looking for them, and they aren't in there.)

I want to get the full, long, medium, and short date formats, and the short time format strings as they have been customized by the user.

I can't use the new date and time "styles" introduced in 10.4's NSDateFormatter object as I need to run on 10.3, and ideally 10.2.

--
James Bucanek <mailto:email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Getting the NSDateFormatter strings from the user's preferences
      • From: James Bucanek <email@hidden>
    • Re: Getting the NSDateFormatter strings from the user's preferences
      • From: "Sean McBride" <email@hidden>
    • Re: Getting the NSDateFormatter strings from the user's preferences
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: [ANN] Open-source IPA character palette IM
  • Next by Date: Re: Size of comboboxes in an NSTableView / NSTableColumn
  • Previous by thread: [ANN] Open-source IPA character palette IM
  • Next by thread: Re: Getting the NSDateFormatter strings from the user's preferences
  • Index(es):
    • Date
    • Thread