Re: Suggested maximum size of NSCachesDirectory on iOS
Re: Suggested maximum size of NSCachesDirectory on iOS
- Subject: Re: Suggested maximum size of NSCachesDirectory on iOS
- From: Markus Spoettl <email@hidden>
- Date: Mon, 10 Jun 2013 09:26:03 +0200
Hi Robert,
On 6/10/13 8:51 AM, Robert Vojta wrote:
/Cached data should be stored in the <Application_Home>/Library/Caches
directory. Examples of files you should put in the Caches directory include (but
are not limited to) database cache files and downloadable content, such as that
used by magazine, newspaper, and map apps. Your app should be able to gracefully
handle situations where cached data is deleted by the system to free up disk space./
There's no when, but there's that they're.
That was I was referring to. The fact that there's no talk about limiting the
use of the cache directory could be seen (by a lazy person such as myself) as
"use as much as you want, the system will limit it for you".
Of course the system would not know which files I would want to have deleted
first, unless it goes by file date (which would actually be what I want). I
guess we'll never know.
/Temporary data should be stored in the <Application_Home>/tmp directory.
Temporary data comprises any data that you do not need to persist for an
extended period of time. Remember to delete those files when you are done with
them so that they do not continue to consume space on the user's device./
/
/
Depends on data, sometimes NSTemporaryDirectory() is better. Data in temporary
directory are deleted after 3 days IIRC.
Caches is the right one for my use.
Thanks for your response!
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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