• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: brain-dead NSThread question ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >brain-dead NSThread question ... (From: John Michael Zorko <email@hidden>)

  • Prev by Date: Re: brain-dead NSThread question ...
  • Next by Date: Re: NameAndPassword Sample Code
  • Previous by thread: Re: brain-dead NSThread question ...
  • Next by thread: NSUInteger in for-loop?
  • Index(es):
    • Date
    • Thread