RE: 10.4 NSDateFormatter format strings
RE: 10.4 NSDateFormatter format strings
- Subject: RE: 10.4 NSDateFormatter format strings
- From: "Christopher Hickman" <email@hidden>
- Date: Mon, 12 Sep 2005 16:14:59 -0400
What he means is that you have to call +[NSDateFormatter
setDefaultFormatterBehavior:NSDateFormatterBehavior10_4] before you can use
the new ICU formats, since the default formatter behavior is
NSDateFormatterBehavior10_0.
-----Original Message-----
From: cocoa-dev-bounces+tophu=email@hidden
[mailto:cocoa-dev-bounces+tophu=email@hidden] On Behalf Of
mmalcolm crawford
Sent: Monday, September 12, 2005 2:31 PM
To: Cocoa Developers List
Subject: Re: 10.4 NSDateFormatter format strings
On Sep 12, 2005, at 9:14 AM, SA Dev wrote:
> I'm having difficulties adjusting to the new ICU string format
> referenced by the NSDateFormatter docs. I want to display a four-
> digit year and the era. I'm creating a formatter like this:
> NSDateFormatter * df = [[[NSDateFormatter alloc]
> initWithDateFormat:@"yyyy G" allowNaturalLanguage:YES] autorelease];
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSDateFormatter.html#//apple_ref/doc/uid/
20000447-401>
See "Class Description".
mmalc
_______________________________________________
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
_______________________________________________
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