Re: brain-dead NSThread question ...

2008-09-14 Thread Shawn Erickson
On Sun, Sep 14, 2008 at 4:12 PM, John Michael Zorko <[EMAIL PROTECTED]> wrote: > > Hello, all ... > > I'm trying to launch a thread to connect to a server and stream some data. > What i'm seeing is that, while my thread launches, the NSURLConnection > callbacks are never called, and it's probably

Re: brain-dead NSThread question ...

2008-09-14 Thread Ken Thomases
On Sep 14, 2008, at 6:36 PM, John Michael Zorko wrote: sleep() is just blocking the thread, so no event is processed. Use run loops instead. Try to replace sleep() with [[NSRunLoop currentRunLoop] runMode:beforeDate:] You mean the NSURLConnection callbacks are not callbacks in the C / C

Re: brain-dead NSThread question ...

2008-09-14 Thread Jason Coco
On Sep 14, 2008, at 19:36 , John Michael Zorko wrote: Julien et al, sleep() is just blocking the thread, so no event is processed. Use run loops instead. Try to replace sleep() with [[NSRunLoop currentRunLoop] runMode:beforeDate:] You mean the NSURLConnection callbacks are not callb

Re: brain-dead NSThread question ...

2008-09-14 Thread John Michael Zorko
Julien et al, sleep() is just blocking the thread, so no event is processed. Use run loops instead. Try to replace sleep() with [[NSRunLoop currentRunLoop] runMode:beforeDate:] You mean the NSURLConnection callbacks are not callbacks in the C / C+ + sense i.e. they're more like dispat

Re: brain-dead NSThread question ...

2008-09-14 Thread Julien Jalon
sleep() is just blocking the thread, so no event is processed. Use run loops instead. Try to replace sleep() with [[NSRunLoop currentRunLoop] runMode:beforeDate:] -- Julien ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

brain-dead NSThread question ...

2008-09-14 Thread John Michael Zorko
Hello, all ... I'm trying to launch a thread to connect to a server and stream some data. What i'm seeing is that, while my thread launches, the NSURLConnection callbacks are never called, and it's probably some silly thing i'm not understanding about ObjC / Cocoa (being an old C / C++