Re: NSURL Caching Question
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