views:

56

answers:

2

I have been developing an iPad application in which I want to implement multithreading, so that I can use background threads for network communication.

I tried NSThread and NSOperation but I can't get a proper mechanism for thread communication in NSThread and the application crashes randomly when I use NSOperation and NSOperatioQueue....

There is a library called ThreadWorker but it works only on Mac not iPhone/iPad.

So please tell me a good library or method for multithreading in iPhone!

Thanks

A: 

I tell you a good library for network programming: Multithreaded network programming can be painful. If possible use CocoaAsyncSocket for your networking. This provides you nice delegate methods that are executed on your main thread.

Felix
+1  A: 

I would recommend ASIHTTPRequest. http://allseeing-i.com/ASIHTTPRequest/

enbr