• 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
Re: confstr + [NSFileManager stringWithFileSystemRepresentation:length:] crash on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >confstr + [NSFileManager stringWithFileSystemRepresentation:length:] crash on Leopard (From: Vera Tkachenko <email@hidden>)

  • Prev by Date: Importing to core data persistent document
  • Next by Date: NSHTTPCookieStorage
  • Previous by thread: confstr + [NSFileManager stringWithFileSystemRepresentation:length:] crash on Leopard
  • Next by thread: Importing to core data persistent document
  • Index(es):
    • Date
    • Thread