nsfilemanager
How to set up initial Core Data store in a Mac app?
I am an experienced iOS developer trying to make my first Mac app. I want to use Core data to store the data in my app. In my iOS apps, I generally have a pre-created SQLite file which is used as the[详细]
2023-03-15 13:17 分类:问答Can not save data in subdirectory of Documents iPhone
I want to create a subdirectory (Document/MyFolder) in iphone. I can create subdirectory but can not save data in subdirectory. Here is my code[详细]
2023-03-14 07:10 分类:问答NSFileManager works when built in Xcode as release, but not when ran as standalone OS X Cocoa app
I have the following function written to randomly pick a file from a directory. It works totally fine when I build the project i开发者_开发知识库n Xcode for release with the application that automatic[详细]
2023-03-13 17:24 分类:问答NSFilemanager and secure delete
Is there any officially supported way of secur开发者_JAVA技巧e-deleting files in Mac OS X 10.5+?[详细]
2023-03-13 10:19 分类:问答cast a custom object to NSData for use with NSFileManager
I have an object that I\'ve written in objective c. It is very simple and just really stores a few values.[详细]
2023-03-13 07:53 分类:问答Setting group and owner of a file in obj-c
I am trying to change group and owner of a file in a cocoa application and was planning to use setAttributes:ofItemAtPat开发者_如何学运维h:error: method of NSFileManager[详细]
2023-03-13 03:55 分类:问答How do i delete a file in the xxxx.app directory
I have the following code: NSFileManager *fileManager = [NSFileManager defaultManager]; NSString *path1 = [[NSBundle mainBundle] pathForResource:@\"myFile\" ofType:@\"txt\"];[详细]
2023-03-12 09:24 分类:问答Memory Leak while creating and copying Images with NSFiIlemanager on iPad App
I have a memory leak which crashes my App while copying / creating images width NSFileManager. When i profile my App with \"Allocations\", everything looks fine. The Allocated Memory Goes up from apr[详细]
2023-03-12 03:58 分类:问答NSFileManager unable to view below certain directories
I\'m trying to write some code to inspect or alter (not malicious or anything like that) other iOS apps installed on the user\'s device. Specifically on a Jailbroken device. On the jailbroken device I[详细]
2023-03-10 23:39 分类:问答How to overwrite a file with NSFileManager when copying?
I\'m using this method to copy a file: [fileManager copyItemAtPath:sourcePath toPath:targetPath error:&error];[详细]
2023-03-08 07:42 分类:问答