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