Re: The current preferred method for fetching HTTP URLs for IOS
Re: The current preferred method for fetching HTTP URLs for IOS
- Subject: Re: The current preferred method for fetching HTTP URLs for IOS
- From: Wade Tregaskis <email@hidden>
- Date: Fri, 09 Mar 2012 12:48:43 -0800
> FWIW, my view is that it depends on what your requirements are. For a simple request, you can go with an [NSString stringWithContentsOfURL] wrapped in a call to dispatch_async to avoid blocking the main thread.
But keep in mind that threads are not free and there are a finite number available to each concurrent queue. You can experience unexpected delays if you abuse them. You may even get into deadlock.
I'm not saying not to use that convenience method, but you should consider if your usage of it will be sufficiently light.
_______________________________________________
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