Re: rate limiting calls
Re: rate limiting calls
- Subject: Re: rate limiting calls
- From: Kyle Sluder <email@hidden>
- Date: Tue, 28 May 2013 10:01:39 -0700
On May 28, 2013, at 9:03 AM, Torsten Curdt <email@hidden> wrote:
>
> The cancel and perform selector calls are being called but updateValue
> is only performed when I release the slider handle.
> I don't quite get why.
Well, aside from using performSelector:@selector(updateValue:) when the method is actually named -update (which I assume is just a typo), the slider is going to run the runloop in event tracking mode while the user is dragging. -performSelector:… will schedule the selector for NSDefaultRunLoopMode. You need to use the …inModes: variant to get delay-performs to happen while mouse-tracking.
--Kyle Sluder
_______________________________________________
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