On Aug 29, 2012, at 12:42 PM, danchik <danc...@rebelbase.com> wrote:

> Seems like it is waiting for me to return before it will process the
> command, is there a way I can make a syncronouse url content pull from
> within the -startLoading protocol handler?

Don't do that. Never block the URL-loading thread, or you'll delay all URL 
loading in the app. And I can totally imagine that trying to do synchronous 
networking on that thread will deadlock it; in fact I have no idea why it would 
have worked at all in earlier OS versions!

If you're going to do networking in a protocol handler, use the asynchronous 
API. If you must use a synchronous API, spawn a new thread to run it on.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to