Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Who and why creates ~/Library/Caches/<my application> and how to stop it?



Cool!
That sounds like a one-liner solution to the OP's original problem. Way less work than making delegates to disable caching, and way less likely to cause mysterious problems :)



On Nov 8, 2006, at 11:09 AM, Jakob Stoklund Olesen wrote:


On 08/11/2006, at 19.13, John Stiles wrote:

Taking it from another angle—I wonder if there is a way to ask WebKit to clear your cache.
In that case you could keep using stringWithContentsOfURL and then just clear your cache when the app terminates.

[[NSURLCache sharedURLCache] removeAllCachedResponses]

The URL loading system is part of Foundation, you don't need Web Kit. (But Web Kit uses it).

I suggest you read the fine manual:

file:///Developer/ADC%20Reference%20Library/documentation/Cocoa/ Conceptual/URLLoadingSystem/index.html



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

This email sent to email@hidden
References: 
 >Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: Andrei Tchijov <email@hidden>)
 >Re: Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: John Stiles <email@hidden>)
 >Re: Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: Andrei Tchijov <email@hidden>)
 >Re: Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: Jakob Stoklund Olesen <email@hidden>)
 >Re: Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: Andrei Tchijov <email@hidden>)
 >Re: Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: John Stiles <email@hidden>)
 >Re: Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: Jakob Stoklund Olesen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.