Um.. a little help?
Um.. a little help?
- Subject: Um.. a little help?
- From: Simone Manganelli <email@hidden>
- Date: Tue, 1 Apr 2003 14:08:55 -0800
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.