• 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: initWithContentsOfURL question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: initWithContentsOfURL question


  • Subject: Re: initWithContentsOfURL question
  • From: Jesus De Meyer <email@hidden>
  • Date: Mon, 5 Nov 2007 11:10:33 +0100


Um, what do you mean by "safe?"


Like, will it always do a remote connection to get the data or could it be that some classes only do local connections.


Ultimately you should get the same result. It's more convenient to use these methods than NSURLConnection but you do risk seriously blocking the main thread at the user's inconvenience.

Yeah, I noticed that too, I think I'll use NSURLConnection instead. Wouldn't like to block the main thread that much.


Thanks,

Jesus


Mike.

On 4 Nov 2007, at 14:18, Jesus De Meyer wrote:

Hi (again),

How safe is it to retrieve data via the methods initWithContentsOfURL or stringWithContentsOfURL, rather than using NSURLConnection to retrieve the data asynchronously?

Thanks in advance,

Jesus
__________________
Jesus De Meyer
www.edot-studios.com
jesus.edot-studios.com
"creativity in mind"


_______________________________________________

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

__________________ Jesus De Meyer www.edot-studios.com jesus.edot-studios.com "creativity in mind"


_______________________________________________

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: 
 >initWithContentsOfURL question (From: Jesus De Meyer <email@hidden>)
 >Re: initWithContentsOfURL question (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Announcing RemoveSVN
  • Next by Date: Re: is part of Bundle?
  • Previous by thread: Re: initWithContentsOfURL question
  • Next by thread: How to split large class files?
  • Index(es):
    • Date
    • Thread