Re: nsslider subclass not responding to mouseUp:
Re: nsslider subclass not responding to mouseUp:
- Subject: Re: nsslider subclass not responding to mouseUp:
- From: glenn andreas <email@hidden>
- Date: Mon, 5 Jun 2006 13:30:07 -0500
On Jun 5, 2006, at 11:19 AM, Daniel Angermeier wrote:
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.
[snip]
upon mouse down on my custom slider, nothing happens. upon mouse up
"mouse down" is logged.
what am I doing wrong ?
Other than your expectations of how NSSlider works, nothing.
Basically, NSSlider handles all the tracking within mouse down - it
waits and loops in there until the mouse is released, which is why,
when you call super mouseDown: it blocks until the mouse is released
(at which point you get to your code afterwards that says "mouse down").
See <http://developer.apple.com/documentation/Cocoa/Conceptual/
BasicEventHandling/index.html> for an example of how this is done.
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
_______________________________________________
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