Re: nsslider subclass not responding to mouseUp:
Re: nsslider subclass not responding to mouseUp:
- Subject: Re: nsslider subclass not responding to mouseUp:
- From: "Daniel Angermeier" <email@hidden>
- Date: Tue, 6 Jun 2006 00:26:46 +0200
I've subclassed NSSliderCell, and I have overridden
(void)stopTracking:(NSPoint)lastPoint at:(NSPoint)stopPoint.
In my nsslider subclass I try to set the slider cell in initWithFrame:
but it's never called, neither is init. what might be missing ?
+ what attributes does the nsslider subclass have to set on its
nsslider cell subclass ?
any further suggestions would be great.
thanks,
Daniel
On 6/5/06, glenn andreas <email@hidden> wrote:
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