Hi,

on iOS, is there any documentation on how much space an app should use at most when storing things in the location returned by NSFileManagers's -URLsForDirectory: with NSCachesDirectory? Are there any hard numbers (like for example "never more than 1/20th of the entire disk", or something like that)? I couldn't find the slightest hint.

I have an app that potentially produces a lot of cached data (downloaded from the network). Caching is highly beneficial to its performance, so generally the bigger the cache the better. Still, filling the device up until it's maxed out doesn't seem a good thing to do.

Also, there's no mention on when cached files will get deleted (in case space runs out). The only piece of documentation with respect to deletion I came across is that cache files *may* not survive an update of the app. However, the system surely will (have to) start deleting files before then if it runs out of space, no?

Does anyone have any insights?

Thanks!
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to