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 ++ sense i.e. they're more like dispatched messages instead?

How would you imagine that "callbacks in the C / C++ sense" would be called during sleep()? sleep() always causes nothing to be done. This isn't specific to Objective-C or Cocoa.

Regards,
Ken

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to