]> err.no Git - sope/blobdiff - sope-ical/NGiCal/iCalFreeBusy.m
NSCopying support added
[sope] / sope-ical / NGiCal / iCalFreeBusy.m
index 60a6950ec1f429d3c82313204510ebe0435f56f6..4305a8646f6243ae51d038595d03bb14b2979a98 100644 (file)
   [super dealloc];
 }
 
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+  iCalFreeBusy *new;
+  
+  new = [super copyWithZone:_zone];
+  
+  ASSIGNCOPY(new->entries,   self->entries);
+  ASSIGNCOPY(new->organizer, self->organizer);
+  ASSIGNCOPY(new->startDate, self->startDate);
+  ASSIGNCOPY(new->endDate,   self->endDate);
+  ASSIGNCOPY(new->url,       self->url);
+  
+  return new;
+}
+
 /* accessors */
 
 - (void)setUrl:(NSString *)_url {