]> err.no Git - sope/blobdiff - sope-ical/NGiCal/iCalAlarm.m
NSCopying support added
[sope] / sope-ical / NGiCal / iCalAlarm.m
index 151ffdfd15929b442401a02b2ac81b69fd496a7b..b7a20dd6877becaf0ae5d51dc3a312cf95a84669 100644 (file)
   [super dealloc];
 }
 
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+  iCalAlarm *new;
+  
+  new = [super copyWithZone:_zone];
+  
+  ASSIGNCOPY(new->trigger,        self->trigger);
+  ASSIGNCOPY(new->comment,        self->comment);
+  ASSIGNCOPY(new->action,         self->action);
+  ASSIGNCOPY(new->attach,         self->attach);
+  ASSIGNCOPY(new->recurrenceRule, self->recurrenceRule);
+  
+  return new;
+}
+
 /* accessors */
 
 - (void)setTrigger:(id)_value {