implement integerValue method in NSSliderCell (#296)

the superclass method integerValue: method in NSCell uses the _object_value to retrieve the result, but the implementation of setObjectValue: in NSSliderCell sets _value. So integerValue: needs to return _value.
This commit is contained in:
williameveretteggplant 2024-10-03 01:14:45 -06:00 committed by GitHub
parent fb61a0f287
commit 3b02ac1d9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -658,6 +658,11 @@ double _doubleValueForMousePoint (NSPoint point, NSRect knobRect,
}
}
- (NSInteger) integerValue
{
return (NSInteger)_value;
}
- (id) objectValue
{
return [NSNumber numberWithDouble: _value];