Skip to content

Commit

Permalink
removing warning on iphone platform for non-existant NSDate call
Browse files Browse the repository at this point in the history
  • Loading branch information
magicseth committed Mar 31, 2010
1 parent 7be30a3 commit 3400870
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MGTwitterXMLParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,12 @@ - (void)parser:(NSXMLParser *)theParser didEndElement:(NSString *)elementName
[currentNode setObject:boolNumber forKey:elementName];
} else if ([elementName isEqualToString:@"created_at"]) {
// Change date-string into an NSDate.
#ifndef IPHONE_TARGET
NSDate *creationDate = [NSDate dateWithNaturalLanguageString:[currentNode objectForKey:elementName]];
if (creationDate) {
[currentNode setObject:creationDate forKey:elementName];
}
#endif
}
}

Expand Down

0 comments on commit 3400870

Please sign in to comment.