Question about directory for Application Caches
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