• 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: John Michael Zorko <email@hidden>
  • Date: Sun, 14 Sep 2008 16:36:39 -0700


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 dispatched messages instead?


Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com



_______________________________________________

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


  • Follow-Ups:
    • Re: brain-dead NSThread question ...
      • From: Ken Thomases <email@hidden>
    • Re: brain-dead NSThread question ...
      • From: Jason Coco <email@hidden>
References: 
 >brain-dead NSThread question ... (From: John Michael Zorko <email@hidden>)
 >Re: brain-dead NSThread question ... (From: "Julien Jalon" <email@hidden>)

  • Prev by Date: Re: brain-dead NSThread question ...
  • Next by Date: Re: brain-dead NSThread question ...
  • Previous by thread: Re: brain-dead NSThread question ...
  • Next by thread: Re: brain-dead NSThread question ...
  • Index(es):
    • Date
    • Thread