* Source/NSSliderCell.m: Implement copyWithZone:.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24075 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2006-11-11 18:11:21 +00:00
parent 84a0a59321
commit 586f972d12
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2006-11-11 Matt Rice <ratmice@gmail.com>
* Source/NSSliderCell.m: Implement copyWithZone:.
2006-11-10 Matt Rice <ratmice@gmail.com>
* Source/NSOutlineView.m: Handle rowAtPoint: returning -1.

View file

@ -153,6 +153,16 @@ float _floatValueForMousePoint (NSPoint point, NSRect knobRect,
[super dealloc];
}
- (id) copyWithZone:(NSZone *)zone
{
NSSliderCell *cpy = [super copyWithZone:zone];
/* since NSCells -copyWithZone calls NSCopyObject */
RETAIN(_titleCell);
RETAIN(_knobCell);
return cpy;
}
- (BOOL) isFlipped
{
return YES;