• 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
NSFileManager Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFileManager Help


  • Subject: NSFileManager Help
  • From: "J. Todd Slack" <email@hidden>
  • Date: Wed, 27 Aug 2008 17:43:59 -0700

Hi All,

10.5.4, XCode 3.1

I have the following:

NSFileManager *manager = [NSFileManager defaultManager];

NSString *applicationSupportDirectory = @"~/Library/Application Support/Ring-Maker/tmp/"; /* temp scratch space */

applicationSupportDirectory = [applicationSupportDirectory stringByExpandingTildeInPath];

if ([manager fileExistsAtPath: applicationSupportDirectory] == NO) {
[manager createDirectoryAtPath: applicationSupportDirectory attributes: nil];
}


It simply does not create the directory. This is code that I had in another project that worked.

What am I missing?

-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


  • Follow-Ups:
    • Re: NSFileManager Help
      • From: Andrew Farmer <email@hidden>
    • Re: NSFileManager Help
      • From: Jason Coco <email@hidden>
  • Prev by Date: Re: iphone SDK questions
  • Next by Date: mark added object in NSArrayController as "dirty"?
  • Previous by thread: Re: [Moderator] Re: iphone SDK questions
  • Next by thread: Re: NSFileManager Help
  • Index(es):
    • Date
    • Thread