From: helge Date: Mon, 12 Feb 2007 21:31:19 +0000 (+0000) Subject: added a description X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=626044e3c21f908d581c41d241b73de6ecc34a7f;p=sope added a description git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1430 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-ical/NGiCal/ChangeLog b/sope-ical/NGiCal/ChangeLog index 64d6b937..a9b04d62 100644 --- a/sope-ical/NGiCal/ChangeLog +++ b/sope-ical/NGiCal/ChangeLog @@ -1,3 +1,7 @@ +2007-02-12 Helge Hess + + * iCalRecurrenceCalculator.m: added -description (v4.7.78) + 2006-11-14 Helge Hess * iCalRecurrenceRule.m: parse (but not process or store) 'bymonth' diff --git a/sope-ical/NGiCal/Version b/sope-ical/NGiCal/Version index 6965928e..3b3362c6 100644 --- a/sope-ical/NGiCal/Version +++ b/sope-ical/NGiCal/Version @@ -2,7 +2,7 @@ MAJOR_VERSION=4 MINOR_VERSION=7 -SUBMINOR_VERSION:=77 +SUBMINOR_VERSION:=78 # v4.5.40 requires NGExtensions v4.5.145 # v4.5.37 requires NGExtensions v4.5.140 diff --git a/sope-ical/NGiCal/iCalRecurrenceCalculator.m b/sope-ical/NGiCal/iCalRecurrenceCalculator.m index d144efea..4abe6979 100644 --- a/sope-ical/NGiCal/iCalRecurrenceCalculator.m +++ b/sope-ical/NGiCal/iCalRecurrenceCalculator.m @@ -1,5 +1,6 @@ /* - Copyright (C) 2004-2005 SKYRIX Software AG + Copyright (C) 2004-2007 SKYRIX Software AG + Copyright (C) 2007 Helge Hess This file is part of SOPE. @@ -298,4 +299,23 @@ static Class yearlyCalcClass = Nil; return nil; } + +/* descriptions */ + +- (NSString *)description { + NSMutableString *ms; + + ms = [NSMutableString stringWithCapacity:128]; + [ms appendFormat:@"<0x%p[%@]:", self, NSStringFromClass([self class])]; + + if (self->rrule != nil) + [ms appendFormat:@" rrule=%@", self->rrule]; + + if (self->firstRange != nil) + [ms appendFormat:@" range1=%@", self->firstRange]; + + [ms appendString:@">"]; + return ms; +} + @end /* iCalRecurrenceCalculator */