nsfilemanager
Creating tab delimited file in objective-c
I found this snippet online to write, and then append data to a text file: - (void)appendText:(NSString *)text toFile:(NSString *)filePath {[详细]
2023-04-12 16:40 分类:问答Storing database in NSCachesDirectory
I want to keep my database in NSCachesDirectory. Will it gets deleted without i am doing it programmatically?[详细]
2023-04-09 05:31 分类:问答How to check if a directory exists in Objective-C
I guess this is a beginner\'s problem, but I was trying to check if a directory exists in my Documents folder on the iPhone. I read the documentation and came up with this code which unfortunately cra[详细]
2023-04-07 13:42 分类:问答Problem getting files from folder, error recognizing folder. (Objective c)
I have the user select a folder from an NSOpenPanel. This returns a filepath like: file://localhost/Folder. Here is my code where it all goes wrong:[详细]
2023-04-05 19:37 分类:问答How to obtain the size of a Application Directory in iPhone?
(NSString *) getApplicationUsage{ double directorySizeInBytes = 0.0f; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationDirectory, NSUserDomainMask, YES);[详细]
2023-04-05 04:52 分类:问答How to get All paths for files in Documents directory?
I usually get paths by using NSBundle. But, NSBundle does not contain Documents folder. How to get All paths(or names) for files 开发者_开发百科in Documents directory?This will give u the paths for[详细]
2023-04-05 01:52 分类:问答How to check if folder is empty, and instantiate file names inside the folder into NSStrings? (iphone cocoa)
Just wondering, how would I check if a particular folder is holding files, and instantiate file names inside the f开发者_如何转开发older into NSStrings? I know of a class called NSFileManager, but I\'[详细]
2023-04-03 15:13 分类:问答Odd behavior from Dictionary to URL writing/reading
I\'ve been looking all over the site for a similar issue, but none of the fixes for any of the other questions I\'ve found have helped, so maybe I\'m looking at it wrong or something. Anyways here is[详细]
2023-04-03 03:42 分类:问答How to check for existence of a file which does not have a specific name? (In an iPhone cocoa app)
I am currently able to periodica开发者_运维知识库lly monitor the existence of a particular file in a particular folder using NSTimer and NSFileManager. However, how will I go about checking the existe[详细]
2023-04-03 03:10 分类:问答What's wrong with my copy here?
I\'m trying to copy a file from my application bundle to my app\'s documents directory. I\'m getting an error, \"Cocoa Error 262\". What am I doing wrong? Here\'s my code:[详细]
2023-04-01 17:18 分类:问答