Re: brain-dead NSThread question ...
Re: brain-dead NSThread question ...
- Subject: Re: brain-dead NSThread question ...
- From: "Shawn Erickson" <email@hidden>
- Date: Sun, 14 Sep 2008 16:46:43 -0700
On Sun, Sep 14, 2008 at 4:12 PM, John Michael Zorko <email@hidden> 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 some silly thing i'm not
> understanding about ObjC / Cocoa (being an old C / C++ developer):
The API you are using supports async "callbacks" so really don't need
to be firing off a thread as you are. You likely could just use NSApp
managed runloop in the main thread (assuming this is an NSApplication
based application). Just convert things to be event driven.
-Shawn
_______________________________________________
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