• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Continuous controls: detecting when the last message comes through
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Continuous controls: detecting when the last message comes through
      • From: Jean-François Veillette <email@hidden>
  • Prev by Date: Re: Dockling Menus - How do I do a submenu?
  • Next by Date: Re: NSThread question - DO to make it sing
  • Previous by thread: Re: Dockling Menus - How do I do a submenu?
  • Next by thread: Re: Continuous controls: detecting when the last message comes through
  • Index(es):
    • Date
    • Thread