• 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
Suggested maximum size of NSCachesDirectory on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suggested maximum size of NSCachesDirectory on iOS


  • Subject: Suggested maximum size of NSCachesDirectory on iOS
  • From: Markus Spoettl <email@hidden>
  • Date: Sun, 09 Jun 2013 23:13:56 +0200

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 (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

  • Follow-Ups:
    • Re: Suggested maximum size of NSCachesDirectory on iOS
      • From: Robert Vojta <email@hidden>
  • Prev by Date: Re: error in using NSNumber's numberWithInt: method not flagged
  • Next by Date: Search field in menu, like Help menu has
  • Previous by thread: Re: error in using NSNumber's numberWithInt: method not flagged
  • Next by thread: Re: Suggested maximum size of NSCachesDirectory on iOS
  • Index(es):
    • Date
    • Thread