]> err.no Git - sope/blobdiff - sope-ical/NGiCal/iCalEntityObject.m
fixed NSCopying *sigh*
[sope] / sope-ical / NGiCal / iCalEntityObject.m
index 6f78e6c53e66b2c3de50b14b5834025fdf82f861..5b9950d1f0b631d7d511588d098e445228c553bb 100644 (file)
 
   new = [super copyWithZone:_zone];
 
-  ASSIGNCOPY(new->uid,          self->uid);
-  ASSIGNCOPY(new->summary,      self->summary);
-  new->timestamp = self->timestamp;
-  ASSIGNCOPY(new->created,      self->created);
-  ASSIGNCOPY(new->lastModified, self->lastModified);
-  ASSIGNCOPY(new->startDate,    self->startDate);
-  ASSIGNCOPY(new->accessClass,  self->accessClass);
-  ASSIGNCOPY(new->priority,     self->priority);
-  ASSIGNCOPY(new->alarms,       self->alarms);
-  ASSIGNCOPY(new->organizer,    self->organizer);
-  ASSIGNCOPY(new->attendees,    self->attendees);
-  ASSIGNCOPY(new->comment,      self->comment);
-  ASSIGNCOPY(new->sequence,     self->sequence);
-  ASSIGNCOPY(new->location,     self->location);
-  ASSIGNCOPY(new->status,       self->status);
-  ASSIGNCOPY(new->categories,   self->categories);
-  ASSIGNCOPY(new->userComment,  self->userComment);
+  new->uid          = [self->uid          copyWithZone:_zone];
+  new->summary      = [self->summary      copyWithZone:_zone];
+  new->timestamp    = self->timestamp;
+  new->created      = [self->created      copyWithZone:_zone];
+  new->lastModified = [self->lastModified copyWithZone:_zone];
+  new->startDate    = [self->startDate    copyWithZone:_zone];
+  new->accessClass  = [self->accessClass  copyWithZone:_zone];
+  new->priority     = [self->priority     copyWithZone:_zone];
+  new->alarms       = [self->alarms       copyWithZone:_zone];
+  new->organizer    = [self->organizer    copyWithZone:_zone];
+  new->attendees    = [self->attendees    copyWithZone:_zone];
+  new->comment      = [self->comment      copyWithZone:_zone];
+  new->sequence     = [self->sequence     copyWithZone:_zone];
+  new->location     = [self->location     copyWithZone:_zone];
+  new->status       = [self->status       copyWithZone:_zone];
+  new->categories   = [self->categories   copyWithZone:_zone];
+  new->userComment  = [self->userComment  copyWithZone:_zone];
 
   return new;
 }