]> err.no Git - sope/blobdiff - sope-ical/NGiCal/iCalRepeatableEntityObject.m
NSCopying support added
[sope] / sope-ical / NGiCal / iCalRepeatableEntityObject.m
index 6d9a0ea8743e72cb11efcee70f60102c52eaaefd..a5fca2b6f7603fe5bdc1f776fae2e5909a3c3d5c 100644 (file)
   [super dealloc];
 }
 
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+  iCalRepeatableEntityObject *new;
+
+  new = [super copyWithZone:_zone];
+  
+  ASSIGNCOPY(new->rRules,  self->rRules);
+  ASSIGNCOPY(new->exRules, self->exRules);
+  ASSIGNCOPY(new->exDates, self->exDates);
+
+  return new;
+}
+
 /* Accessors */
 
 - (void)removeAllRecurrenceRules {