• 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: NSURL Caching Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL Caching Question


  • Subject: Re: NSURL Caching Question
  • From: Ricky Sharp <email@hidden>
  • Date: Thu, 17 Mar 2005 11:56:30 -0600

On Thursday, March 17, 2005, at 11:19AM, Ian G. Gillespie <email@hidden> wrote:

>I am working on a program that has a built-in news reader so it
>downloads XML files from the internet.  I have read over the
>documentation and several posts about url caching and I still have
>questions, mostly because I am not that familiar with url's and
>caching.
>
>My question is this, if I create a NSURLHandle using the
>URLHandleUsingCache: method and pass it YES, is the URLHandle that is
>returned always from the cache (if available), or will it re-download
>the file if it has changed on the server?  As it seems now, it doesn't
>do a very good job of re-downloading it if it changed on the server.

Is your app for 10.3 and later?  If so, you should move away from using NSURLHandle.  Here's a note from the docs on that class:

"Applications that are intended for deployment on Mac OS X v10.3 or later should use the NSURLProtocol class and NSURLProtocolClient protocol instead of NSURLHandle and NSURLHandleClient."

I'm going to assume you'll get much better support with these newer classes.

--
Rick Sharp
Instant Interactive(tm)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSURL Caching Question
      • From: "Ian G. Gillespie" <email@hidden>
References: 
 >NSURL Caching Question (From: "Ian G. Gillespie" <email@hidden>)

  • Prev by Date: NSURL Caching Question
  • Next by Date: Re: NSURL Caching Question
  • Previous by thread: NSURL Caching Question
  • Next by thread: Re: NSURL Caching Question
  • Index(es):
    • Date
    • Thread