Re: RunLoop Tutorials

2011-05-16 Thread Gary L. Wade
Read this and use the examples referenced at the bottom of each method description: On 05/16/2011 1:07 PM, "Bing Li" wrote: >Dear Alex and Matt, > >Since I need to imp

Re: RunLoop Tutorials

2011-05-16 Thread Bing Li
In fact, I have rich experiences in Java and .NET. I use them to program a lot of low level distributed systems. However, I noticed that a lot of my past experiences could not be reused when programming with Cocoa. On Tue, May 17, 2011 at 4:13 AM, Alex Kac wrote: > There are tons of docs on run

Re: RunLoop Tutorials

2011-05-16 Thread Alex Kac
There are tons of docs on runloops. Check out NSRunLoop and CFRunLoop. But still, if you use a good framework, you really don't need to deal with them directly much. For example, GCDAsyncSocket is a great network class (there are many others) that handle a lot of this for you. Most of the tutori

RunLoop Tutorials

2011-05-16 Thread Bing Li
Dear Alex and Matt, Since I need to implement a peer-to-peer TCP model, I think the system level programming is required. Unfortunately, I have got any books giving enough explanations to RunLoop. Most books even never talk about it. Apple provides a document. However, the sample code is not com