nsfilemanager

Xcode app version not compatible with Mac OS X version

am using Os X 10.6.4 and X code Version 3.2.3 for developing some simple app files and using PackageMaker to distribute these app files. But when trying to run the package on some other mac I am getting error that the package is not compatible with the Os X its running and file would not be installed. Is this a problem with X code or pac...

Why can't files in my iPhone NSBundle folder be deleted?

I'm having trouble figuring out why files in my iPhone app seem to persist, even when I've deleted them. Here's the code that's giving me trouble: NSFileManager *fileManager = [NSFileManager defaultManager]; NSString *bundlePath = [[NSBundle mainBundle] bundlePath]; NSString *folderPath = [bundlePath stringByAppendingPathComponent:@"fi...

Displaying file copy progress using FSCopyObjectAsync

It appears after much searching that there seems to be a common problem when trying to do a file copy and show a progress indicator relative to the amount of the file that has been copied. After spending some considerable time trying to resolve this issue, I find myself at the mercy of the StackOverflow Gods once again :-) - Hopefully on...

Populate table view with local files

How can i populate table view with local files. What do i need to use. Will it be possible if i use NSFileManager and UITableView in combination ? ...

NSFileManager contentsEqualAtPath:andPath: compare checksum data

Does the NSFileManager method contentsEqualAtPath:andPath: create a dynamic checksum to compare two files, does it open the file header and compare file header details or does it use some other method for comparing? I have a list of 200,000 or so files to compare where the local files are to be compared with the files on a remote server...

createDirectoryAtPath:attributes: alternative

[NSFileManager createDirectoryAtPath:attributes:] gives me a warning that it is depreciated. What is the alternative? Or is there a better way of doing this? Thanks Tom ...

How to find the contents in documents directory in iPhone

hi all... i want to know the contents in a directory either its documents or any other. if there is a file or more than one i need those file names. actually i am creating the export directory in documents directory.. and if export is empty then i am copying the zip file from main bundle to export folder but the following code is not w...

removeItemAtPath on a file already open

Hi all, I have a file open on the iPhone that I am sending the data of across the network (Opened using "_open"). However I have the ability to delete files from the iphone's interface. This is done using NSFileManager's removeItemAtPath. The odd thing is that removeItemAtPath is succeeding even though the file is currently open. ...

NSFileManager fileExistsAtPath: crashes with SIGABRT on iOS4.1, why?

Here is the code I am using: NSFileManager* defaultMgr = [NSFileManager defaultManager]; if (![defaultMgr fileExistsAtPath:path]) { return nil; } Where path is a url to a file on the system like: "file://localhost/private/var/mobile/Applications/blahblahblah" This crashes with SIGABRT when the call to fileExistsAtPath: is made. The...

iphone copying folder from bundle to documents

I'm having the hardest time getting this to work. I'm trying to copy a folder from my bundle to the documents directory. the folder I'm trying to find is here: ...app/Resources/12/(a bunch of jpgs) NSString *myPath = [[[NSBundle mainBundle] resourcePath]stringByAppendingPathComponent:@"12"]; NSLog(@"%@",myPath);/// returns "..../MyApp...