Re: NSDateFormatter formats from NSLocale
Re: NSDateFormatter formats from NSLocale
- Subject: Re: NSDateFormatter formats from NSLocale
- From: Rick Mann <email@hidden>
- Date: Tue, 11 Aug 2009 10:16:06 -0700
Can you use separate formatters, one for the date, another for the
time, and just concatenate the resulting strings?
On Aug 11, 2009, at 09:51:59, Houdah - ML Pierre Bernard wrote:
Hi Sean,
I want to respect the user's locale, yet ignore his/her preferences
as to formatting.
I thought about modifying the format I get from the standard styles.
I would however expect NSLocale to know the correct order of
elements in the date format.
Pierre
So you want to use the user's preference and yet you don't. The
choice
of leading zeros or no is part of the user's choice. But if you
must,
you could get the user's format string and carefully alter it to add
leading zeros.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden