Re: NSURLConnection sync vs async connections
Re: NSURLConnection sync vs async connections
- Subject: Re: NSURLConnection sync vs async connections
- From: Ken Thomases <email@hidden>
- Date: Thu, 23 Sep 2010 07:37:29 -0500
On Sep 23, 2010, at 4:21 AM, Devraj Mukherjee wrote:
> Previous version I used NSURLConnection to make synchronous calls to
> the API
> I would like to move towards using async requests. I can grab / parse
> the data using the delegate methods, what I am struggling with is how
> I return the data to the application incorporating my library?
>
> Notifications? Or take define a protocol that the application has to
> implement and call back appropriate messages?
You could follow the example of the class you're using. NSURLConnection uses the delegate pattern.
Regards,
Ken
_______________________________________________
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