X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=sope-ical%2FNGiCal%2FiCalEvent.m;h=39749a77134139269ba720fcb8e9ce39ad80c487;hb=0877357b1db7e211d48acacbd5029e972c92d120;hp=94c4aebd3004bcacc638affe026c629b792a982f;hpb=9cd4a78304cae464310c6bcafb42df378ad631b8;p=sope diff --git a/sope-ical/NGiCal/iCalEvent.m b/sope-ical/NGiCal/iCalEvent.m index 94c4aebd..39749a77 100644 --- a/sope-ical/NGiCal/iCalEvent.m +++ b/sope-ical/NGiCal/iCalEvent.m @@ -33,6 +33,15 @@ @implementation iCalEvent ++ (int)version { + return [super version] + 0 /* v0 */; +} ++ (void)initialize { + NSAssert2([super version] == 0, + @"invalid superclass (%@) version %i !", + NSStringFromClass([self superclass]), [super version]); +} + - (void)dealloc { [self->endDate release]; [self->duration release]; @@ -47,9 +56,9 @@ new = [super copyWithZone:_zone]; - ASSIGNCOPY(new->endDate, self->endDate); - ASSIGNCOPY(new->duration, self->duration); - ASSIGNCOPY(new->transparency, self->transparency); + new->endDate = [self->endDate copyWithZone:_zone]; + new->duration = [self->duration copyWithZone:_zone]; + new->transparency = [self->transparency copyWithZone:_zone]; return new; }