NSData writeToFile:atomically not working right??
NSData writeToFile:atomically not working right??
- Subject: NSData writeToFile:atomically not working right??
- From: Scott Mitchell <email@hidden>
- Date: Tue, 9 Aug 2005 12:41:14 -0600
Ok, this is driving me nuts. I have one place in my code where I call
[NSData writeToFile:atomically]. When I call this isWritten comes back
as YES (meaning the file was written but when I go and look at the path
of where it is to be written, the file is not there???? Can anyone
think of a reason why this would be happening. I have looked on the
archives, and saw a message about retaining the path string so I added
that, but that still makes no difference. I have checked the path at
least 20 times in the debugger to make sure it is correct, I have
searched my whole HD to see if it was being saved somewhere else, but
it is no where to be found. Yet it says that the file was created
correctly.
isWritten = NO;
outFile = [outFile stringByExpandingTildeInPath];
[outFile retain];
isWritten = [outData writeToFile:outFile atomically:YES];
[outFile release];
Thanks in advance for any help.
Thanks,
Scott Mitchell
Macintosh Software Engineer
Excelsior Software
http://www.excelsiorsoftware.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden