Fix copyWithZone:

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2917 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-08-12 10:02:44 +00:00
parent 1dc2f4ce80
commit 80825f3b17
2 changed files with 9 additions and 1 deletions

View file

@ -1,4 +1,10 @@
<<<<<<< ChangeLog
Weds Aug 12 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* 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 <far@ix.netcom.com>
* externs.m further defined the NSStringAdditions globals.

View file

@ -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];