Re: Problem with RTF and NSTextView
Re: Problem with RTF and NSTextView
- Subject: Re: Problem with RTF and NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Fri, 14 Nov 2003 12:02:45 -0800
On Nov 14, 2003, at 11:16 AM, Brant Sears wrote:
I have an NSTextView and I am trying to invoke writeRTFDToFile:
atomically:
method on this view.
So, I'm calling:
[myTextView writeRTFDToFile:@"/Users/me/desktop/foo.rtf" atomically:
YES];
The result is that I get a folder called "foo.rtf" on my desktop that
contains a file called "TXT.rtf". Why does it force this stupid name
for the
rtf file? Am I doing something wrong here?
Yes. There is a difference between RTF and RTFD. RTF is a single
file, RTFD is a package containing an RTF file (as TXT.rtf) plus
attachments. If you want RTF, use the methods for RTF rather than
those for RTFD. If you want RTFD, use the .rtfd extension.
Douglas Davidson
_______________________________________________
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.