Re: Help with Background Tasks
Re: Help with Background Tasks
- Subject: Re: Help with Background Tasks
- From: Jens Alfke <email@hidden>
- Date: Thu, 19 Nov 2009 11:22:11 -0800
On Nov 19, 2009, at 10:42 AM, Mark Bateman wrote:
> All that said I would like to use URLconnection instead (as jens points out) they are asynch but again I have the problem of allocating the responses back to the correct index path object.
Each NSURLRequest can have its own delegate. Store any per-request info you need, like the index path, in the delegate. For example, make an NSIndexPath instance variable and set that in the init method. Then create a new delegate object for each request.
Alternatively, if your object model already has a custom object per item, just use that object as the delegate by adding the appropriate callback methods to it.
—Jens_______________________________________________
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