MultiThread Communication

Tom Kroening

Finally got all the network stuff in my app working (had to use the BSD sockets). I've got the connection object running in its own thread... my only problem is thread communication (i need to let the thread know there is data to send to the server). Im pretty sure i'd use NSNotifier for that... does anyone have any example source?


-Tom Kroening
It's in the Interapplication Communication -> distributed objects section of the cocoa docs. Specifically, NSConnection and NSPort. In fact, the NSConnection docs have a fair bit of sample code for communicating between threads.