Re: Internationalized Dates
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