RE: Um.. a little help?
RE: Um.. a little help?
- Subject: RE: Um.. a little help?
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Tue, 1 Apr 2003 17:51:08 -0500
As I understand it, "atomically" implies that the file is either written
completely or not written at all. "Atomically" does not protect you from
writing over other files.
Jonathan
>
>
OK, I was attempting to write some stuff to a file today, and I was
>
using an instance of NSText like so:
>
>
NSText *theText = [[NSText alloc] init];
>
[theText setString:@"testtest"];
>
[theText writeRTFDToFile:@"/Users/simmy/Documents/" atomically:YES];
>
>
The effect was that my whole Documents folder got overwritten, and now
>
there's only "TXT.rtf" in my Documents folder! I thought that the
>
"atomically" option was there to prevent that -- any thoughts?
>
>
I'm not terribly concerned because I haven't really saved anything in
>
the Documents folder recently that I can recall, but it was a real
>
shock to see that happen. Of course, any help on recovering the files
>
would be great, but I doubt that's the place for these suggestions. I
>
just want to know why it got overwritten even though the "atomically"
>
option was set.
>
>
-- Simone Manganelli
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.