Re: mouseUp event for NSSlider
Re: mouseUp event for NSSlider
- Subject: Re: mouseUp event for NSSlider
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 05 Mar 2009 21:13:02 -0800
On Mar 5, 2009, at 1:43 PM, Norio wrote:
Hi,
Would you give me any suggestions to get the mouseUp event for
NSSlider?
I've tried to make subclass of NSSlider and override mouseUp: and
then put a breakpoint,
but the debugger didn't stop at the breakpoint.
What's tripping you up there is a legacy of how some of the older
controls are implemented. NSSliderCell has a bad habit, which is
capturing the event stream. Once you send it a -mouseDown: message,
it will consume all mouse events until -mouseUp:. If you subclass
NSSliderCell to work around this, don't send [super mouseDown:].
-jcr
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden