• 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
Asynchronous Methods Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Asynchronous Methods Question


  • Subject: Asynchronous Methods Question
  • From: "Josh Ferguson" <email@hidden>
  • Date: Fri, 18 Nov 2005 10:31:47 -0600
  • Thread-topic: Asynchronous Methods Question

So this is probably a newbie question, but I thought I'd ask it anyway.
I'm writing a framework that requires initiating several connections to
a server. I'm using NSURLConnection to create asynchronous connections
so I can update a progress bar. My problem is that I need to block the
entry point until the asynchronous connections are finished downloading.
So, in other words, when a call is made to the framework, I need to
initiate all these connections and wait for them to finish before
returning from the function/method. What's the recommended method for
blocking a function/method from returning? Should I sit in a while loop
with one of the -[NSRunLoop run] methods? Or is there a better way?



Thanks!



Josh

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: How to make sure that end of string is visible in NSTextField
  • Next by Date: Re: NSImageView does not update on setNeedsDisplay
  • Previous by thread: Re: Automagic instantiation of singletons? (Christian Brunschen)
  • Next by thread: RE: Asynchronous Methods Question
  • Index(es):
    • Date
    • Thread