• 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
Question about directory for Application Caches
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about directory for Application Caches


  • Subject: Question about directory for Application Caches
  • From: Jason Coco <email@hidden>
  • Date: Fri, 15 Aug 2008 09:56:10 -0400

Hello All,

I'm a little unclear about this... maybe one of you has some ideas?

Currently, the call to

NSSearchPathForDirectoriesInDomain(NSCachesDirectory, NSUserDomainMask, NO);

returns the path ~/Library/Caches. The FSFindFolder(...) call also returns the same thing. I noticed,
however, that a number of other applications (including XCode itself) are using the cache directory
returned by


 confstr(_CS_DARWIN_USER_CACHE_DIR, path, len);

instead of the old directory in ~/Library. In the XCode 3.1 release notes it even mentions that it now
uses this cache directory for "added security"... is there a recommended move to this directory
structure under /var/folders? Or do we listen to the return value of NSSearchPathForDirectoriesInDomain(...)?


I also noticed that NSTemporaryDirectory(...) returns the temp directory in /var/folders so I'm wondering
if there is a move to put all discardable files back into /var (where, IMO, they belong anyway... but hey). So...
do I use the result of the POSIX call or the Cocoa call? If Apple weren't starting to use the result of the
POSIX call themselves, I wouldn't care, but I'm curious now... any thoughts?


/Jason

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Question about directory for Application Caches
      • From: Jeff Johnson <email@hidden>
  • Prev by Date: Re: Is this a bug, or am I hacking?
  • Next by Date: Re: Is this a bug, or am I hacking? [SOLVED]
  • Previous by thread: Re: Re: Synchronous modal sheet
  • Next by thread: Re: Question about directory for Application Caches
  • Index(es):
    • Date
    • Thread