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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to