• 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: [[NSDate alloc] initWithString] crashes with valid string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [[NSDate alloc] initWithString] crashes with valid string


  • Subject: Re: [[NSDate alloc] initWithString] crashes with valid string
  • From: Andy Lee <email@hidden>
  • Date: Tue, 15 Jul 2008 17:32:27 -0400

On Jul 15, 2008, at 2:36 PM, Markus Spoettl wrote:
This specific crash happened with the string: "2008-05-09 19:47:47 +0000", which seems perfectly valid input for NSDate -initWithString:.

Works for me:

- (void)awakeFromNib
{
NSDate *date = [[NSDate alloc] initWithString:@"2008-05-09 19:47:47 +0000"];
NSLog(@"date is %@", date);
}


--Andy

_______________________________________________

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


References: 
 >[[NSDate alloc] initWithString] crashes with valid string (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: [[NSDate alloc] initWithString] crashes with valid string
  • Next by Date: Re: NSDateFormatter -dateFromString Question
  • Previous by thread: Re: [[NSDate alloc] initWithString] crashes with valid string
  • Next by thread: Re: [[NSDate alloc] initWithString] crashes with valid string
  • Index(es):
    • Date
    • Thread