2004-10-20 Helge Hess <helge.hess@opengroupware.org>
+ * iCalRenderer.m: fixed some issue with Cocoa Foundation (v4.3.33)
+
* v4.3.32
* iCalEvent.m: added -vEvent method to produce an iCalendar
- (void)addVEventForAppointment:(iCalEvent *)event
toString:(NSMutableString *)s
{
+ id tmp;
+
[s appendString:@"BEGIN:VEVENT\r\n"];
[s appendString:@"SUMMARY:"];
[s appendString:[[event location] iCalSafeString]];
[s appendString:@"\r\n"];
}
- [s appendString:@"UID:"];
- [s appendString:[event uid]];
- [s appendString:@"\r\n"];
+
+ if ((tmp = [event uid]) != nil) {
+ [s appendString:@"UID:"];
+ [s appendString:tmp];
+ [s appendString:@"\r\n"];
+ }
[s appendString:@"DTSTART:"];
[s appendString:[[event startDate] icalString]];
[s appendString:@"\r\n"];
}
- [s appendString:@"STATUS:"];
- [s appendString:[event status]];
- [s appendString:@"\r\n"];
+ if ((tmp = [event status]) != nil) {
+ [s appendString:@"STATUS:"];
+ [s appendString:tmp];
+ [s appendString:@"\r\n"];
+ }
/* what's all this? */