Continuous controls: detecting when the last message comes through
Continuous controls: detecting when the last message comes through
- Subject: Continuous controls: detecting when the last message comes through
- From: "Phil Barrett" <email@hidden>
- Date: Wed, 11 Jul 2001 16:24:03 +0100
Is there a way to tell if the action sent by a continuous control (e.g. a
slider or scroller) is the final one, caused by the mouse-up?
While the user is dragging the slider back and forth, I want to do quick
updates to give feedback, but I need to know when the mouse is released and
I get a final action, so I can do a slower update of the information.
Maybe it's as simple as asking if the mouse button is down when the action
is received - but what's the easiest way to do that? I'm already watching
the events coming through [NSApplication sendEvent:] but this only sees the
mouse down that started the drag, so I can't check there.
Or is there a way to ask an NSCell it it's currently tracking the mouse?
Thanks
Phil
--
Phil Barrett - CTO - Cambridge Animation Systems