Re: Question about directory for Application Caches
Re: Question about directory for Application Caches
- Subject: Re: Question about directory for Application Caches
- From: Jeff Johnson <email@hidden>
- Date: Fri, 15 Aug 2008 10:11:55 -0500
Jason,
See the following threads for some discussion of these issues:
http://lists.apple.com/archives/Macnetworkprog/2008/Apr/msg00033.html
http://lists.apple.com/archives/Xcode-users/2008/Jul/msg00283.html
-Jeff
On Aug 15, 2008, at 8:56 AM, Jason Coco wrote:
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_______________________________________________
_______________________________________________
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