discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMDoubleSlider usability on GNUstep


From: Yavor Doganov
Subject: Re: SMDoubleSlider usability on GNUstep
Date: Tue, 20 Feb 2018 16:30:49 +0200
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Goj┼Ź) APEL/10.8 EasyPG/1.0.0 Emacs/25.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

David Chisnall wrote:
> This then checks whether the object responds to -doubleValue, and if
> it does calls that:
> 
> https://github.com/gnustep/libs-gui/blob/master/Source/NSCell.m#L265
> 
> Unfortunately, in this case, it appears that the object value is
> self, so you get infinite recursion.

I think this condition is always false.  _cell.has_valid_object_value
is NO and _object_value is nil.  So it jumps to NSCell.m:269 and
SMDoubleSliderCell's -stringValue is called which calls -stringHiValue
which in turn calls -doubleHiValue and from there the infinite
recursion is in place.

At least this is what I observe in the debugger.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]