• 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: Ordering of Completion Handlers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ordering of Completion Handlers


  • Subject: Re: Ordering of Completion Handlers
  • From: Steve Sisak <email@hidden>
  • Date: Sat, 01 Sep 2012 13:07:49 -0400

At 10:08 AM +0200 8/31/12, Andreas Grosam wrote:
I have a number of operations that will be received serially. Each operation can be processed concurrently with respect to each other. I would like to invoke the completion blocks for each operation in the order as they have been received.

I'm searching a simple approach to achieve this, implemented using NSOperationQueue, NSOperation and dispatch lib.

Check out the LinkedImageFetcher Sample:

<https://developer.apple.com/library/mac/#samplecode/LinkedImageFetcher/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010038>


This is a class utilizing NSURLConnection which can handle multipart/x-mixed-replace Content-types. For each part, a completion block will be invoked passing the corresponding response and the result of the corresponding data processor.

I have some improvements to the Apple code for this -- contact me off list if needed.

-Steve
_______________________________________________

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

  • Prev by Date: Re: Ordering of Completion Handlers
  • Next by Date: Re: Window Title drop-down menu in 10.8
  • Previous by thread: Re: Ordering of Completion Handlers
  • Next by thread: Re: Window Title drop-down menu in 10.8
  • Index(es):
    • Date
    • Thread