]> err.no Git - sope/commitdiff
fixed NSCopying *sigh*
authorznek <znek@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Fri, 15 Jul 2005 11:42:05 +0000 (11:42 +0000)
committerznek <znek@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Fri, 15 Jul 2005 11:42:05 +0000 (11:42 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@909 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

12 files changed:
sope-ical/NGiCal/ChangeLog
sope-ical/NGiCal/Version
sope-ical/NGiCal/iCalAlarm.m
sope-ical/NGiCal/iCalCalendar.m
sope-ical/NGiCal/iCalEntityObject.m
sope-ical/NGiCal/iCalEvent.m
sope-ical/NGiCal/iCalFreeBusy.m
sope-ical/NGiCal/iCalObject.m
sope-ical/NGiCal/iCalPerson.m
sope-ical/NGiCal/iCalRepeatableEntityObject.m
sope-ical/NGiCal/iCalToDo.m
sope-ical/NGiCal/iCalTrigger.m

index 6826f0dd15bb7569db5f4f8a0b9a895b7a7a3e48..9cfd6738e2af2c44934973defcae20b578ad6f7b 100644 (file)
@@ -1,3 +1,10 @@
+2005-07-15  Marcus Mueller  <znek@mulle-kybernetik.com>
+
+       * iCalObject.[hm], iCalEntityObject.m, iCalToDo.m, iCalAlarm.m,
+         iCalPerson.m, iCalCalendar.m, iCalEvent.m, iCalTrigger.m,
+         iCalObject.m, iCalFreeBusy.m, iCalRepeatableEntityObject.m:
+         fixed NSCopying (v4.5.56)
+
 2005-07-15  Helge Hess  <helge.hess@opengroupware.org>
 
        * added fragile base class version checks (v4.5.55)
index b734319b7349c74ed20b20c03693b12de5970d86..2473f5b6cbfe86d24bc491961bb799330bba62db 100644 (file)
@@ -2,7 +2,7 @@
 
 MAJOR_VERSION=4
 MINOR_VERSION=5
-SUBMINOR_VERSION:=55
+SUBMINOR_VERSION:=56
 
 # v4.5.40 requires NGExtensions v4.5.145
 # v4.5.37 requires NGExtensions v4.5.140
index b7a20dd6877becaf0ae5d51dc3a312cf95a84669..56fd27ac064178ea7d69310b09a07db53049b0e7 100644 (file)
   
   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);
+  new->trigger        = [self->trigger copyWithZone:_zone];
+  new->comment        = [self->comment copyWithZone:_zone];
+  new->action         = [self->action copyWithZone:_zone];
+  new->attach         = [self->attach copyWithZone:_zone];
+  new->recurrenceRule = [self->recurrenceRule copyWithZone:_zone];
   
   return new;
 }
index 8c6a19d0c6d4467bb90d080f582228e1d9e98716..ad74d685e15f81634af6ece3bb8f756903ccb15e 100644 (file)
@@ -140,16 +140,16 @@ static SaxObjectDecoder          *sax    = nil; // THREAD
   
   new = [super copyWithZone:_zone];
 
-  ASSIGNCOPY(new->version,  self->version);
-  ASSIGNCOPY(new->calscale, self->calscale);
-  ASSIGNCOPY(new->prodId,   self->prodId);
-  ASSIGNCOPY(new->method,   self->method);
-
-  ASSIGNCOPY(new->todos,     self->todos);
-  ASSIGNCOPY(new->events,    self->events);
-  ASSIGNCOPY(new->journals,  self->journals);
-  ASSIGNCOPY(new->freeBusys, self->freeBusys);
-  ASSIGNCOPY(new->timezones, self->timezones);
+  new->version   = [self->version  copyWithZone:_zone];
+  new->calscale  = [self->calscale copyWithZone:_zone];
+  new->prodId    = [self->prodId   copyWithZone:_zone];
+  new->method    = [self->method   copyWithZone:_zone];
+
+  new->todos      = [self->todos     copyWithZone:_zone];
+  new->events     = [self->events    copyWithZone:_zone];
+  new->journals   = [self->journals  copyWithZone:_zone];
+  new->freeBusys  = [self->freeBusys copyWithZone:_zone];
+  new->timezones  = [self->timezones copyWithZone:_zone];
 
   return new;
 }
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;
 }
index a6945a4fd4174fad8bdfef5f752131705fa63fc1..39749a77134139269ba720fcb8e9ce39ad80c487 100644 (file)
@@ -56,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;
 }
index 742e4ad5f15c33c7cbf42bc89b6981b6c95398f0..bcae215556421c926f32afba9b985d37a2173ede 100644 (file)
   
   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);
-  
+  new->entries   = [self->entries   copyWithZone:_zone];
+  new->organizer = [self->organizer copyWithZone:_zone];
+  new->startDate = [self->startDate copyWithZone:_zone];
+  new->endDate   = [self->endDate   copyWithZone:_zone];
+  new->url       = [self->url       copyWithZone:_zone];
+
   return new;
 }
 
index f985391adcc3bf7ee1e90219d89233483993c1b7..71f4597cd2c8faad213d27793d129e1f0f2232eb 100644 (file)
@@ -46,7 +46,7 @@ static NSTimeZone *defTZ = nil;
 - (id)copyWithZone:(NSZone *)_zone {
   iCalObject *new;
   
-  new = [[iCalObject allocWithZone:_zone] init];
+  new = [[[self class] allocWithZone:_zone] init];
   return new;
 }
 
index 2069d084726072201029a80409c5488c165c29b7..c1e9ade591953fcf659f62c36be110d92a6a6afd 100644 (file)
   
   new = [super copyWithZone:_zone];
   
-  ASSIGNCOPY(new->cn,       self->cn);
-  ASSIGNCOPY(new->email,    self->email);
-  ASSIGNCOPY(new->rsvp,     self->rsvp);
-  ASSIGNCOPY(new->partStat, self->partStat);
-  ASSIGNCOPY(new->role,     self->role);
-  ASSIGNCOPY(new->xuid,     self->xuid);
-  
+  new->cn       = [self->cn       copyWithZone:_zone];
+  new->email    = [self->email    copyWithZone:_zone];
+  new->rsvp     = [self->rsvp     copyWithZone:_zone];
+  new->partStat = [self->partStat copyWithZone:_zone];
+  new->role     = [self->role     copyWithZone:_zone];
+  new->xuid     = [self->xuid     copyWithZone:_zone];
+
   return new;
 }
 
index 90c27dda4feed2d0db56319fd58e6c195f26bbe2..b04f28149341c0e17b2513a1f442200e12aca65f 100644 (file)
@@ -50,9 +50,9 @@
 
   new = [super copyWithZone:_zone];
   
-  ASSIGNCOPY(new->rRules,  self->rRules);
-  ASSIGNCOPY(new->exRules, self->exRules);
-  ASSIGNCOPY(new->exDates, self->exDates);
+  new->rRules  = [self->rRules  copyWithZone:_zone];
+  new->exRules = [self->exRules copyWithZone:_zone];
+  new->exDates = [self->exDates copyWithZone:_zone];
 
   return new;
 }
index 0bc2259e3c797a924e1fff46cb3880349a0edbee..dc17e204a295cd847f0dd0d9c35e09915e82ca66 100644 (file)
   
   new = [super copyWithZone:_zone];
   
-  ASSIGNCOPY(new->due,   self->due);
-  ASSIGNCOPY(new->percentComplete, self->percentComplete);
-  ASSIGNCOPY(new->completed, self->completed);
-  
+  new->due             = [self->due             copyWithZone:_zone];
+  new->percentComplete = [self->percentComplete copyWithZone:_zone];
+  new->completed       = [self->completed       copyWithZone:_zone];
+
   return new;
 }
 
index 21fe30ae26e35cefd03f28b66c1b81f09ddce6d2..9891168a499d17f3465c3d14721b4e22fc4aefc8 100644 (file)
@@ -37,8 +37,8 @@
   
   new = [super copyWithZone:_zone];
   
-  ASSIGNCOPY(new->valueType, self->valueType);
-  ASSIGNCOPY(new->value,     self->value);
+  new->valueType = [self->valueType copyWithZone:_zone];
+  new->value     = [self->value     copyWithZone:_zone];
   
   return new;
 }