FROM : Daniel Angermeier
DATE : Mon Jun 05 18:19:47 2006
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
DATE : Mon Jun 05 18:19:47 2006
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
| Related mails | Author | Date |
|---|---|---|
| Daniel Angermeier | Jun 5, 18:19 | |
| mmalcolm crawford | Jun 5, 18:24 | |
| glenn andreas | Jun 5, 20:30 | |
| Erik Buck | Jun 5, 22:46 | |
| Daniel Angermeier | Jun 6, 00:26 | |
| Michael Ash | Jun 6, 19:10 |






Cocoa mail archive

