mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 17:22:10 +00:00
Tidy encoding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5618 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
039fa17286
commit
0ac6a19348
2 changed files with 9 additions and 6 deletions
|
@ -61,7 +61,7 @@ static Class cellClass;
|
||||||
|
|
||||||
- (id) initWithFrame: (NSRect)frameRect
|
- (id) initWithFrame: (NSRect)frameRect
|
||||||
{
|
{
|
||||||
NSSliderCell* theCell = [[[isa cellClass] new] autorelease];
|
NSSliderCell *theCell = AUTORELEASE([[isa cellClass] new]);
|
||||||
|
|
||||||
[super initWithFrame: frameRect];
|
[super initWithFrame: frameRect];
|
||||||
|
|
||||||
|
@ -297,7 +297,6 @@ static Class cellClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
[self trackKnob: theEvent knobRect: rect];
|
[self trackKnob: theEvent knobRect: rect];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -216,16 +216,20 @@
|
||||||
- (id) initWithCoder: (NSCoder*)decoder
|
- (id) initWithCoder: (NSCoder*)decoder
|
||||||
{
|
{
|
||||||
self = [super initWithCoder: decoder];
|
self = [super initWithCoder: decoder];
|
||||||
[decoder decodeValuesOfObjCTypes: "ffff",
|
[decoder decodeValuesOfObjCTypes: "ffffi",
|
||||||
&_minValue, &_maxValue, &_floatValue, &_altIncrementValue];
|
&_minValue, &_maxValue, &_floatValue, &_altIncrementValue, &_isVertical];
|
||||||
|
[decoder decodeValueOfObjCType: @encode(id) at: &_titleCell];
|
||||||
|
|
||||||
|
_knobCell = [NSCell new];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) encodeWithCoder: (NSCoder*)coder
|
- (void) encodeWithCoder: (NSCoder*)coder
|
||||||
{
|
{
|
||||||
[super encodeWithCoder: coder];
|
[super encodeWithCoder: coder];
|
||||||
[coder encodeValuesOfObjCTypes: "ffff",
|
[coder encodeValuesOfObjCTypes: "ffffi",
|
||||||
&_minValue, &_maxValue, &_floatValue, &_altIncrementValue];
|
&_minValue, &_maxValue, &_floatValue, &_altIncrementValue, &_isVertical];
|
||||||
|
[coder encodeValueOfObjCType: @encode(id) at: &_titleCell];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue