Re: RunLoop Tutorials
Re: RunLoop Tutorials
- Subject: Re: RunLoop Tutorials
- From: "Gary L. Wade" <email@hidden>
- Date: Mon, 16 May 2011 13:33:45 -0700
- Thread-topic: RunLoop Tutorials
Read this and use the examples referenced at the bottom of each method
description:
<http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Str
eams/Streams.html#//apple_ref/doc/uid/10000188i>
On 05/16/2011 1:07 PM, "Bing Li" <email@hidden> wrote:
>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 complete. I
>cannot understand well. RunLoop code looks weird.
>
>I am not sure if you have some better resources for me to follow?
>
>Best,
>Bing
>
>On Tue, May 17, 2011 at 3:44 AM, Alex Kac <email@hidden> wrote:
>
>> To be fair, a new Cocoa developer doesn't need to worry about runloops.
>> Cocoa handles all that for you in most cases. Its good to understand
>>when
>> you understand all the rest of the basics, but its like learning how to
>> drive a car and asking about the specifics of drivetrain operation.
>>
>> On May 16, 2011, at 2:32 PM, Matt Neuburg wrote:
>>
>> > On Mon, 16 May 2011 21:31:18 +0800, Bing Li <email@hidden> said:
>> >>
>> >> although I have
>> >> got to know the term, RunLoop, when starting to learn Cocoa for two
>> months,
>> >> until now I have not seen a sample code about RunLoop in any
>>resources.
>> So I
>> >> don't know how to program with it.
>> >>
>> >
>> > When I search on NSRunLoop in Xcode, I get 50 or 60 sample code
>>projects.
>> I'm not saying that all of these would show you what you want to know
>>(most
>> of them are about adding a timer or a stream), but to claim that there
>>is
>> *no* sample code involving run loops seems a bit over the top. m.
>> >
>> > --
>> > matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
>> > A fool + a tool + an autorelease pool = cool!
>> > Programming iOS 4!
>> >
>>
>>http://www.apeth.net/matt/default.html#iosbook___________________________
>>____________________
>> >
>> > Cocoa-dev mailing list (email@hidden)
>> >
>> > Please do not post admin requests or moderator comments to the list.
>> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>> >
>> > Help/Unsubscribe/Update your Subscription:
>> >
>> > This email sent to email@hidden
>>
>> Alex Kac - President and Founder
>> Web Information Solutions, Inc.
>>
>> "Patience is the companion of wisdom."
>> --Anonymous
>>
>>
>>
>>
>>
>_______________________________________________
>
>Cocoa-dev mailing list (email@hidden)
>
>Please do not post admin requests or moderator comments to the list.
>Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
>Help/Unsubscribe/Update your Subscription:
>s.com
>
>This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden