Re: NSSlider unusual behavior
Re: NSSlider unusual behavior
- Subject: Re: NSSlider unusual behavior
- From: Ivan Kourtev <email@hidden>
- Date: Mon, 4 Sep 2006 12:45:48 -0400
I couldn't find anything in the docs that explains this behavior.
I understand that setContinuous makes the slider send its action
continuously. The question is why it continues to send the action
message when the mouse is down, the slider has been dragged all the
way to an end, and the mouse is doing whatever (while still down) out
of the NSSlider rectangle? Why send the action message repeatedly
(under the above conditions) if the slider position and value have
not changed (it's stuck at an end), hence, the action message is not
delivering to the target any new information?
I am curious because I am doing stuff in response to the slider's
position and I thought receiving the action message is a 100%-sure
indication the position has changed. Well, it seems at the ends of
the sliders this is not true. I can, of course, modify the code so
that it detects the slider position hasn't change. But that does not
seem elegant and logical at all (unless I am missing some conceptual
reasons for this behavior).
On Sep 4, 2006, at 12:02 PM, Ryan Stevens wrote:
On Monday, September 04, 2006, at 07:50AM, Ivan Kourtev
<email@hidden> wrote:
Hi,
Is it a well-known fact that linear NSSlider's continue to send their
action after the slider has reached the end of the scale and the
mouse is still down? (The number for the slider position is correct,
of course, so it saturates to a constant at either end of the
scale). Is that a bug, or is it acceptable behavior? If this is the
correct behavior, what's the reason for it? Thanks,
-- ivan
yup, it's well-known. From the NSControl page in the docs...
setContinuous:
Sets whether the receiver?s cell sends its action message
continuously to its target during mouse tracking.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden