diff --git a/ChangeLog b/ChangeLog index 7589afc69..02d3cb9dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ <<<<<<< ChangeLog +Weds Aug 12 1998 Richard Frith-Macdonald + + * NSCell.m: Modified ([-copyWithZone:]) to use alloc-init to create + new cell so that it works properly for subclasses that need to be + initialised. + Tues Aug 11 1998 Felipe A. Rodriguez * externs.m further defined the NSStringAdditions globals. diff --git a/Source/NSCell.m b/Source/NSCell.m index 6662823c1..151e8d044 100644 --- a/Source/NSCell.m +++ b/Source/NSCell.m @@ -776,7 +776,9 @@ - (id)copyWithZone:(NSZone*)zone { - NSCell* c = NSAllocateObject (isa, 0, zone); + NSCell* c; + + c = [[isa allocWithZone: zone] init]; [c setStringValue:contents]; [c setImage:cell_image];