nsslider subclass not responding to mouseUp:
nsslider subclass not responding to mouseUp:
- Subject: nsslider subclass not responding to mouseUp:
- From: "Daniel Angermeier" <email@hidden>
- Date: Mon, 5 Jun 2006 18:19:47 +0200
Hi,
I've subclassed NSSlider and I I want it to perform some additional
things when my custom instance receives mouse down or mouse up events.
so in my .m file of the nsslider subclass I wrote:
-(void)mouseDown:(NSEvent *)theEvent{
[super mouseDown:theEvent]; // regular behavior of NSSlider
// some additional behavior
NSLog(@"mouse down");
}
-(void)mouseUp:(NSEvent *)theEvent{
[super mouseUp:theEvent]; // regular behavior of NSSlider
// some additional behavior
NSLog(@"mouse up");
}
upon mouse down on my custom slider, nothing happens. upon mouse up
"mouse down" is logged.
what am I doing wrong ?
thanks,
daniel
_______________________________________________
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