Tag Archives: objective c

Easy inside bundle folder creation for Mac

Quick tidbit of creating folder within the bundle path NSFileManager *fm = [NSFileManager defaultManager]; NSError *error; NSString *bundleRoot = [[NSBundle mainBundle] bundlePath]; NSString *dataPath = [NSString stringWithFormat:@”%@/picImages”, bundleRoot]; NSLog(@”dataPath is %@”,dataPath); [fm createDirectoryAtPath:dataPath withIntermediateDirectories:NO attributes:nil error:&error];

Posted in mac development, objective C, OS X | Tagged , , | Leave a comment