• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: rate limiting calls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rate limiting calls


  • Subject: Re: rate limiting calls
  • From: Dave Fernandes <email@hidden>
  • Date: Tue, 28 May 2013 13:12:22 -0400

I use the GCD serial queue approach. On each update from the slider, cancel all operations in the queue and then add a new operation with the latest slider value. However, the NSOperation subclass should NOT check whether it is cancelled once it starts executing. That way, once it starts, it is assured to complete and you will get periodic updates.

On 2013-05-28, at 12:29 PM, Torsten Curdt <email@hidden> wrote:

>> Hm - this does not seem to work and I cannot see why not.
>>
>> 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.
>
> Would still be eager to know why but a GCD implementation was super
> simple and works.
> _______________________________________________
>
> 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


_______________________________________________

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

  • Follow-Ups:
    • Re: rate limiting calls
      • From: Kyle Sluder <email@hidden>
References: 
 >rate limiting calls (From: Torsten Curdt <email@hidden>)
 >Re: rate limiting calls (From: Igor Elland <email@hidden>)
 >Re: rate limiting calls (From: Torsten Curdt <email@hidden>)
 >Re: rate limiting calls (From: John Pannell <email@hidden>)
 >Re: rate limiting calls (From: Torsten Curdt <email@hidden>)
 >Re: rate limiting calls (From: Torsten Curdt <email@hidden>)
 >Re: rate limiting calls (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Re: rate limiting calls
  • Next by Date: Re: rate limiting calls
  • Previous by thread: Re: rate limiting calls
  • Next by thread: Re: rate limiting calls
  • Index(es):
    • Date
    • Thread