Re: NSSlider mouseUp ????
Re: NSSlider mouseUp ????
- Subject: Re: NSSlider mouseUp ????
- From: Conor Dearden <email@hidden>
- Date: Sat, 04 Mar 2006 12:54:31 +0100
You could stop playing the sound when the action for the control gets sent.
Also another possibility is to set the action to be sent continuously and
play the sound there. You could play a different pitch depending on the
difference in values so that fast movement sounds different then slow
movement.
- (void)setContinuous:(BOOL)flag
But if you really want to track the mouse use the method:
trackMouse:inRect:ofView:untilMouseUp:
You might not be getting the mouse up event because the mouse has left the
control when the button is released. The above method will also let you know
when the mouse leaves the control. Don't forget to call super on that
method after overriding it.
Regards,
Conor
http://www.bruji.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden