• 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: stringWithContentsOfURL doesn't load the updated file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stringWithContentsOfURL doesn't load the updated file


  • Subject: Re: stringWithContentsOfURL doesn't load the updated file
  • From: j o a r <email@hidden>
  • Date: Tue, 1 Apr 2003 14:43:22 +0200

It probably remembers the url:s it has loaded and returns a cached copy as some sort of optimization. You should do like I told you in your other recent email "How to download a file from a web site?" - ie. use NSURLHandle!
With NSURLHandle you can control if a downloaded URL should be cached or not, and flush the cache when you want to.

j o a r

On Tuesday, Apr 1, 2003, at 14:29 Europe/Stockholm, Lorenzo Puleo wrote:

I use this
webString = [NSString stringWithContentsOfURL:myURL];
to load a text file from a web site. It works.

But after, if I update that file to that web site using some FTP transfer
application like Transmit, the API above, doesn't load the new file, but
always the first one. I have to restart the machine in order to load the new
updated file. Or, I have to launch Explorer, reload the web page of that
file, then relaunch my application.

So, how to load always the latest and most updated file?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: stringWithContentsOfURL doesn't load the updated file
      • From: m <email@hidden>
References: 
 >stringWithContentsOfURL doesn't load the updated file (From: Lorenzo Puleo <email@hidden>)

  • Prev by Date: stringWithContentsOfURL doesn't load the updated file
  • Next by Date: Re: How to download a file from a web site?
  • Previous by thread: stringWithContentsOfURL doesn't load the updated file
  • Next by thread: Re: stringWithContentsOfURL doesn't load the updated file
  • Index(es):
    • Date
    • Thread