• 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
Capturing slider movement in NSSlider
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Capturing slider movement in NSSlider


  • Subject: Capturing slider movement in NSSlider
  • From: Louis Sinclair <email@hidden>
  • Date: Tue, 09 Dec 2003 10:46:50 -0600
  • Organization: Minnetonka Software, Inc.

Hello,

I have a need to send changing NSSlider values as it is being dragged.
I've subclassed NSSlider and implemented mouseDown, mouseUp,
mouseDragged, and mouseMoved.

I'm getting the mouseDown and mouseUp events, but not the mouseDragged
or mouseMoved methods. I'm calling the setAcceptsMouseEvents method to
activate mouse moved events in the mouseDown method, and calling it
again to turn it off in the mouseDown method.

I've used the identical approach with a subclassed version of NSButton,
so it appears that NSSlider handles those events differently.

Can anyone shed any light on the proper way to do this?

Thanks in advance for any suggestions!

--
Louis Sinclair
mailto:email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Capturing slider movement in NSSlider
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: Capturing slider movement in NSSlider
      • From: Public Look <email@hidden>
    • Re: Capturing slider movement in NSSlider
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: PopupButton help
  • Next by Date: Re: PopupButton help
  • Previous by thread: Re: PopupButton help
  • Next by thread: Re: Capturing slider movement in NSSlider
  • Index(es):
    • Date
    • Thread