NSFileManager Help
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