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

Re: Capturing slider movement in NSSlider


  • Subject: Re: Capturing slider movement in NSSlider
  • From: Stephane Sudre <email@hidden>
  • Date: Tue, 9 Dec 2003 18:08:27 +0100

Any particular reason why you're not using the standard NSSlider with the continuous option?

If the reason is that you want to do something when the value is changed and another one when the value is finally selected, one solution is to use the delayed performSelector method.

On Tuesday, December 9, 2003, at 05:46 PM, Louis Sinclair wrote:

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?
_______________________________________________
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.

References: 
 >Capturing slider movement in NSSlider (From: Louis Sinclair <email@hidden>)

  • Prev by Date: Re: PopupButton help
  • Next by Date: Re: PopupButton help
  • Previous by thread: Capturing slider movement in NSSlider
  • Next by thread: Re: Capturing slider movement in NSSlider
  • Index(es):
    • Date
    • Thread