NSFileManager deprecated
Tue, 08/03/2010 - 13:40
#pragma mark -
#pragma mark Database access
- (NSString *)applicationSupportDirectory;
{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES);
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
NSFileManager *fileManager = [NSFileManager defaultManager];
if ([fileManager fileExistsAtPath:basePath] == NO)
{
/// [fileManager createDirectoryAtPath:basePath attributes: nil];
[fileManager createDirectoryAtPath:basePath withIntermediateDirectories:NO attributes:nil error:nil];
}
return basePath;
Attachment | Size |
---|---|
Screen shot 2010-08-03 at 2.28.48 PM.png | 64 KB |
Yes, I noticed that when I was updating everything for iOS 4.0. That's fixed in my current build, which I'll post when I fix a couple of other bugs I've identified.