Re: [[NSDate alloc] initWithString] crashes with valid string
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