From: helge Date: Tue, 19 Oct 2004 22:28:39 +0000 (+0000) Subject: fixed some OSX issue X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6891dbe935e01f77c7ecb9802a004140968060e4;p=sope fixed some OSX issue git-svn-id: http://svn.opengroupware.org/SOPE/trunk@281 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-ical/NGiCal/ChangeLog b/sope-ical/NGiCal/ChangeLog index bfcdcefe..2842f055 100644 --- a/sope-ical/NGiCal/ChangeLog +++ b/sope-ical/NGiCal/ChangeLog @@ -1,5 +1,7 @@ 2004-10-20 Helge Hess + * iCalRenderer.m: fixed some issue with Cocoa Foundation (v4.3.33) + * v4.3.32 * iCalEvent.m: added -vEvent method to produce an iCalendar diff --git a/sope-ical/NGiCal/Version b/sope-ical/NGiCal/Version index d5af3010..0a1e54b3 100644 --- a/sope-ical/NGiCal/Version +++ b/sope-ical/NGiCal/Version @@ -2,4 +2,4 @@ MAJOR_VERSION=4 MINOR_VERSION=3 -SUBMINOR_VERSION:=32 +SUBMINOR_VERSION:=33 diff --git a/sope-ical/NGiCal/iCalRenderer.m b/sope-ical/NGiCal/iCalRenderer.m index dec0e083..63580651 100644 --- a/sope-ical/NGiCal/iCalRenderer.m +++ b/sope-ical/NGiCal/iCalRenderer.m @@ -106,6 +106,8 @@ static unsigned DefaultICalStringCapacity = 1024; - (void)addVEventForAppointment:(iCalEvent *)event toString:(NSMutableString *)s { + id tmp; + [s appendString:@"BEGIN:VEVENT\r\n"]; [s appendString:@"SUMMARY:"]; @@ -116,9 +118,12 @@ static unsigned DefaultICalStringCapacity = 1024; [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]]; @@ -153,9 +158,11 @@ static unsigned DefaultICalStringCapacity = 1024; [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? */