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%23//apple_ref/doc/uid/10000188i>


On 05/16/2011 1:07 PM, "Bing Li" <lbl...@gmail.com> 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 <a...@webis.net> 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 <lbl...@gmail.com> 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 = m...@tidbits.com, <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 (Cocoa-dev@lists.apple.com)
>> >
>> > 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:
>> > http://lists.apple.com/mailman/options/cocoa-dev/alex%40webis.net
>> >
>> > This email sent to a...@webis.net
>>
>> Alex Kac - President and Founder
>> Web Information Solutions, Inc.
>>
>> "Patience is the companion of wisdom."
>> --Anonymous
>>
>>
>>
>>
>>
>_______________________________________________
>
>Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
>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:
>http://lists.apple.com/mailman/options/cocoa-dev/garywade%40desisoftsystem
>s.com
>
>This email sent to garyw...@desisoftsystems.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to