Re: confstr + [NSFileManager stringWithFileSystemRepresentation:length:] crash on Leopard
Re: confstr + [NSFileManager stringWithFileSystemRepresentation:length:] crash on Leopard
- Subject: Re: confstr + [NSFileManager stringWithFileSystemRepresentation:length:] crash on Leopard
- From: Fritz Anderson <email@hidden>
- Date: Wed, 4 Aug 2010 10:01:05 -0500
On 4 Aug 2010, at 9:49 AM, Vera Tkachenko wrote:
> in my application I need to obtain system cache directory (not ~/Library/Caches). To perform this I use code "borrowed" from WebKit (that why I think it's correct :) )
Don't do that. Use NSSearchPathForDirectoriesInDomains() with the directory code of NSCachesDirectory and the system domain mask (NSSystemDomainMask for /System/Library/Caches, though you probably mean NSLocalDomainMask for /Library/Caches).
— F
_______________________________________________
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