NSURLConnection sync vs async connections
NSURLConnection sync vs async connections
- Subject: NSURLConnection sync vs async connections
- From: Devraj Mukherjee <email@hidden>
- Date: Thu, 23 Sep 2010 19:21:44 +1000
Hi all,
I am the maintainer of EtsyCocoa (http://etsycocoa.googlecode.com),
its a Cocoa client library for Etsy.com's REST API. I am in the
process of re-writing the API client seeing they have released v2 of
their API.
Previous version I used NSURLConnection to make synchronous calls to
the API, parsing the data and then returning results. Only problem of
course is that my API client had to be used in threads so the UI
didn't get locked up while the request was being made.
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?
Any ideas would be appreciated.
Thanks.
_______________________________________________
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