notification of NSSlider end of tracking

2008-10-17 Thread James Walker
I'd like to be notified when the mouse button has been released after some live tracking of a slider. I can probably do it by subclassing NSSlider and NSSliderCell, for instance overriding [NSCell stopTracking:at:inView:mouseIsUp:], but is there an easier way? -- James W. Walker,

Re: notification of NSSlider end of tracking

2008-10-17 Thread Michael Ash
On Fri, Oct 17, 2008 at 2:33 PM, James Walker [EMAIL PROTECTED] wrote: I'd like to be notified when the mouse button has been released after some live tracking of a slider. I can probably do it by subclassing NSSlider and NSSliderCell, for instance overriding [NSCell

Re: notification of NSSlider end of tracking

2008-10-17 Thread James Walker
Michael Ash wrote: On Fri, Oct 17, 2008 at 2:33 PM, James Walker [EMAIL PROTECTED] wrote: I'd like to be notified when the mouse button has been released after some live tracking of a slider. I can probably do it by subclassing NSSlider and NSSliderCell, for instance overriding [NSCell

Re: notification of NSSlider end of tracking

2008-10-17 Thread Ken Ferry
If you really only want to be informed of the final value, you can just set 'Continuous' to NO in IB. Mike's technique is good though, and can provide better UI if you have a cheap action you can take continuously and something more expensive that cannot afford to do live. For this, use a delay

Re: notification of NSSlider end of tracking

2008-10-17 Thread Michael Ash
On Fri, Oct 17, 2008 at 5:01 PM, James Walker [EMAIL PROTECTED] wrote: Wow, I never would have come up with that on my own. Thanks a lot! You're welcome. I can't take any credit for it, though, as I didn't come up with it on my own either. I no longer remember where I got it, but it was

Re: notification of NSSlider end of tracking

2008-10-17 Thread Graham Cox
On 18 Oct 2008, at 6:45 am, Michael Ash wrote: - (IBAction)sliderMoved:(id)sender { SEL trackingEndedSelector = @selector(sliderEnded:); [NSObject cancelPreviousPerformRequestsWithTarget:self selector:trackingEndedSelector object:sender]; [self performSelector:trackingEndedSelector