Re: NSSlider mouseUp ????
Re: NSSlider mouseUp ????
- Subject: Re: NSSlider mouseUp ????
- From: Scott Anguish <email@hidden>
- Date: Sat, 4 Mar 2006 17:51:09 -0500
On Mar 15, 2006, at 7:17 AM, Nik Youdale wrote:
Yeah, I tried that.
I found that overriding the mouseDown method re-enables mouseUp
(obviously), but as soon as i called the super implementation, the
event eating would take place once more, effectively disabling
mouseUp. So the sound would start playing, with no problems at all,
but would never stop, because i don't know when to stop it.
right.. but what I'm saying is, can you not do this?
- (void)mouseDown:(NSEvent *)theEvent
{
[super mouseDown:theEvent];
// now play the sound
}
- Nik
On 04/03/2006, at 11:10 PM, Scott Anguish wrote:
On Mar 4, 2006, at 5:20 AM, Nik Youdale wrote:
Hi,
I was just playing around with an NSSlider. I want a sound to
play whilst the slider is sliding, and then stop when the slider
has stopped sliding. So I thought I would just play it in the
mouseDown event, and then stop it in the mouseUp event. But the
mouseUp event never fires!!!!!!!
NSSlider short circuits the event loop and handles all the drag
operation in the mouseDown: event?
You could try overriding mouseDown: and immediately calling the
superclass implementation, and then try playing the sound when it
returns.
How can i get some sort of notification that the slider has
finished sliding??!!
_______________________________________________
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