Re: Um.. a little help?
Re: Um.. a little help?
- Subject: Re: Um.. a little help?
- From: Fabian Lidman <email@hidden>
- Date: Wed, 2 Apr 2003 00:28:18 +0200
You want to specify the full path to the file you wish to create --
e.g. "/Users/simmy/Documents/mydocument.rtf".
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?
_______________________________________________
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.