Re: NSSlider did finish sliding
Re: NSSlider did finish sliding
- Subject: Re: NSSlider did finish sliding
- From: Shaun Wexler <email@hidden>
- Date: Sat, 2 Sep 2006 11:02:44 -0700
On Sep 2, 2006, at 1:21 AM, John C. Randolph wrote:
On Sep 1, 2006, at 11:22 PM, Bruce Johnson wrote:
I can't get the mouseUp log to print. What other hoops am I missing?
The pitfall here is that NSSlider just passes the mousedown to its
cell, which then hijacks the event loop until the mouse is
released. To override this behavior, you'll need to subclass
NSSliderCell.
Actually if he is already subclassing NSSlider, he can simply do it
from the mouseDown:
- (void)mouseDown:(NSEvent *event)
{
[super mouseDown:event];
[myDelegate handleMouseUp:[NSApp currentEvent]];
}
--
Shaun Wexler
MacFOH
http://www.macfoh.com
"Problems cannot be solved by the same level of thinking that created
them." - Albert Einstein
_______________________________________________
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