I can't test that right now... however I'd be tempted to use:
HTML Code:
eventToAdd.startDate = [NSDate date]; // Set the start date to the current date/time.
eventToAdd.endDate = [NSDate dateWithTimeInterval:600.0f sinceDate:[eventToAdd startDate]];
rather than:
HTML Code:
eventToAdd.startDate = [[NSDate alloc] init];
eventToAdd.endDate = [[NSDate alloc] initWithTimeInterval:600 sinceDate:eventToAdd.startDate];
Your solution will cause a memory leak for both startDate and endDate as you've not released either NSDate objects or put them on the autorelease pool.