Asynchronous Methods Question
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