Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-26-2008, 04:32 AM   #1 (permalink)
P-development
New Member
 
Join Date: Aug 2008
Posts: 36
Default Wrapping asynchronous code in a synchronous method call

Hi,

I wonder how I would go about wrapping some aSynchronous code into a synchronous method call, like the NSURLConnection sendSynchronousRequest:returningResponse:error: method. It wraps the aSynchronous NSURLConnection code into this synchronous method. I'd like to do this do because I need to alter some of the delegate methods of NSURLConnection, but I do need it to be synchronous.

How would I do this? Or, in general, how could I block the calling thread until I notify it?

Thanks in advance.
P-development is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,830
Threads: 89,208
Posts: 380,640
Top Poster: BrianSlick (7,129)
Welcome to our newest member, ronward1023
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:03 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.