Re: Ordering of Completion Handlers
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