• 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
Re: Service with NSURLConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Service with NSURLConnection


  • Subject: Re: Service with NSURLConnection
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 11 Jan 2013 10:52:59 -0800

On Jan 11, 2013, at 8:59 AM, Jim Thomason <email@hidden> wrote:

> The issue is that my -doWebStuff:userData:error: method seems to only let
> me write to the pasteboard during the invocation of that method, and once
> it completes I'm done. NSURLConnection is all delegate based, so I wouldn't
> have the results of my lookup until the secondary thread completes and my
> delegate realizes its done loading the data.

No, NSURLConnection supports synchronous calls — see the +sendSynchronousRequest: method.

—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


  • Follow-Ups:
    • Re: Service with NSURLConnection
      • From: Jim Thomason <email@hidden>
References: 
 >Service with NSURLConnection (From: Jim Thomason <email@hidden>)

  • Prev by Date: Re: Core Foundation Objects and Properties when using ARC
  • Next by Date: Re: Service with NSURLConnection
  • Previous by thread: Re: Service with NSURLConnection
  • Next by thread: Re: Service with NSURLConnection
  • Index(es):
    • Date
    • Thread