Re: Capturing slider movement in NSSlider
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.