• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSURLConnection sync vs async connections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSURLConnection sync vs async connections
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Tooltip flickers and disappear.
  • Next by Date: CGDisplayChangeSummaryFlags
  • Previous by thread: Tooltip flickers and disappear.
  • Next by thread: Re: NSURLConnection sync vs async connections
  • Index(es):
    • Date
    • Thread