Re: Questions about multithreading
Re: Questions about multithreading
- Subject: Re: Questions about multithreading
- From: email@hidden (mikevannorsdel)
- Date: Wed, 10 Oct 2001 23:45:07 -0600
Just use [myConnection runInNewThread]. It will break the connection's
work off in its own thread. Make sure and use autoreleasepools.
On Wednesday, October 10, 2001, at 11:22 PM, Gvran Granstrvm wrote:
I need to get my NSConnection multithreaded because it freezes my app
when it takes a long time to receive or send data or when it tries to
connect. I have been playing round with NSConnection and NSThread a lot
but I just can't get it to work, there is no example or documentation
on this what I have seen, so I really really need some help. I think
apple should make more examples on Cocoa because examples is somehow
the best way to learn new special things. A chat-app example show how
to send and receive data trough a remote connection in multithreading
mode would be perfect !