mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 20:51:16 +00:00
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:
parent
32acf03f3f
commit
b8c4dc4964
2 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,10 @@
|
||||||
<<<<<<< ChangeLog
|
<<<<<<< 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>
|
Tues Aug 11 1998 Felipe A. Rodriguez <far@ix.netcom.com>
|
||||||
|
|
||||||
* externs.m further defined the NSStringAdditions globals.
|
* externs.m further defined the NSStringAdditions globals.
|
||||||
|
|
|
@ -776,7 +776,9 @@
|
||||||
|
|
||||||
- (id)copyWithZone:(NSZone*)zone
|
- (id)copyWithZone:(NSZone*)zone
|
||||||
{
|
{
|
||||||
NSCell* c = NSAllocateObject (isa, 0, zone);
|
NSCell* c;
|
||||||
|
|
||||||
|
c = [[isa allocWithZone: zone] init];
|
||||||
|
|
||||||
[c setStringValue:contents];
|
[c setStringValue:contents];
|
||||||
[c setImage:cell_image];
|
[c setImage:cell_image];
|
||||||
|
|
Loading…
Reference in a new issue