• 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: 10.4 NSDateFormatter format strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: 10.4 NSDateFormatter format strings
      • From: mmalcolm crawford <email@hidden>
References: 
 >Re: 10.4 NSDateFormatter format strings (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Core data model - binding question
  • Next by Date: How do I unsubscribe?
  • Previous by thread: Re: 10.4 NSDateFormatter format strings
  • Next by thread: Re: 10.4 NSDateFormatter format strings
  • Index(es):
    • Date
    • Thread