]> err.no Git - sope/blobdiff - sope-ical/NGiCal/iCalEvent.m
updated framework version
[sope] / sope-ical / NGiCal / iCalEvent.m
index 94c4aebd3004bcacc638affe026c629b792a982f..39749a77134139269ba720fcb8e9ce39ad80c487 100644 (file)
 
 @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;
 }