NSSlider did finish sliding
NSSlider did finish sliding
- Subject: NSSlider did finish sliding
- From: "Bruce Johnson" <email@hidden>
- Date: Fri, 1 Sep 2006 23:22:04 -0700
I need an NSSlider to operate on two levels.
1- to continuously update while it is being dragged (via the checkbox in IB)
2- to inform (via delegate or notification) that the user has finished
dragging the slider control (via mouseUp I'm guessing)
I've tried something simple (and obvious) like subclassing NSSlider
and over-riding the mouseDown and mouseUp methods of NSResponder. But
maybe I don't know enough about overriding events to get it to work.
I suspect something in the responder/event chain...
int the subclass of the slider:
- (void)mouseDown:(NSEvent *)theEvent
{
NSLog("@mouse down");
[super mouseDown: theEvent];
}
- (void) mouseUp: (NSEvent *)theEvent
{
NSLog("@mouse up");
[super mouseUp: theEvent];
}
I can't get the mouseUp log to print. What other hoops am I missing?
Thanks
--
----
Bruce Johnson
email@hidden
_______________________________________________
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