• 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: Internationalized Dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internationalized Dates


  • Subject: Re: Internationalized Dates
  • From: Seth Willits <email@hidden>
  • Date: Tue, 31 Oct 2006 22:04:46 -0800

On Oct 31, 2006, at 8:12 PM, Nick Zitzmann wrote:

I'm trying to have a date drawn in a format to fit the width of a column in a table view. Drawing and determining which to use is obviously easy, the question is, where the heck do you get the formats from?

Unless you must target Panther or earlier, the best thing to do is to use the new-style NSDateFormatters and then just use - setDateStyle: and -setTimeStyle: to build the proper formatter. Doing this gives you a lot more control over formatting than using the NSUserDefaults constants. If you must target Panther or earlier, then you must use the NSUserDefaults constants.

I forgot about that. I was originally targeting Panther but have been Tiger-only for... sheesh... a year? Any way, I now have a good solution (to me).




--
Seth Willits



_______________________________________________
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


References: 
 >Internationalized Dates (From: Seth Willits <email@hidden>)
 >Re: Internationalized Dates (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Internationalized Dates
  • Next by Date: .mov starring: NSBrowser
  • Previous by thread: Re: Internationalized Dates
  • Next by thread: .mov starring: NSBrowser
  • Index(es):
    • Date
    • Thread