mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:50:48 +00:00
When copying, only make a superficial copy of ivars
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8306 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
aad9abe261
commit
5fee1bbe00
1 changed files with 5 additions and 10 deletions
|
@ -786,17 +786,12 @@
|
||||||
- (id) copyWithZone: (NSZone*)zone
|
- (id) copyWithZone: (NSZone*)zone
|
||||||
{
|
{
|
||||||
NSButtonCell *c = [super copyWithZone: zone];
|
NSButtonCell *c = [super copyWithZone: zone];
|
||||||
|
|
||||||
|
/* Hmmm. */
|
||||||
c->_altContents = [_altContents copyWithZone: zone];
|
c->_altContents = [_altContents copyWithZone: zone];
|
||||||
if (_altImage)
|
TEST_RETAIN (_altImage);
|
||||||
c->_altImage = RETAIN(_altImage);
|
TEST_RETAIN (_keyEquivalent);
|
||||||
c->_keyEquivalent = [_keyEquivalent copyWithZone: zone];
|
TEST_RETAIN (_keyEquivalentFont);
|
||||||
if (_keyEquivalentFont)
|
|
||||||
c->_keyEquivalentFont = RETAIN(_keyEquivalentFont);
|
|
||||||
//c->_keyEquivalentModifierMask = _keyEquivalentModifierMask;
|
|
||||||
//c->_buttoncell_is_transparent = _buttoncell_is_transparent;
|
|
||||||
//c->_highlightsByMask = _highlightsByMask;
|
|
||||||
//c->_showAltStateMask = _showAltStateMask;
|
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue