Re: Getting the final value from an NSSlider drag
Re: Getting the final value from an NSSlider drag
- Subject: Re: Getting the final value from an NSSlider drag
- From: Roland King <email@hidden>
- Date: Tue, 29 Dec 2015 18:22:50 +0800
> On 29 Dec 2015, at 17:54, Quincey Morris <email@hidden> wrote:
>
> On Dec 29, 2015, at 01:45 , Roland King <email@hidden <mailto:email@hidden>> wrote:
>>
>> the slider is hooked up via bindings in the UI to a label which shows the value *as you slide it*, so it needs to be continuous for that purpose. Then when you let go, only then do I want the final value to be delivered to the app
>
> Yeah, I realized a minute later that you wanted *both* behaviors.
>
> The other way you can approach something like this (though what you did is more direct in this case) is to start a timer. The timer won’t actually run in event loop tracking mode, so you can use time expiry as an indication that the tracking is done. Something like that.
>
>
That’s really sneaky - I love it. I’m pleased there was a more direct way of attacking it in the end however, I may not have slept well for a week after using a timer for that, but it’s great idea.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden