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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com