Re: Problem with RTF and NSTextView
Re: Problem with RTF and NSTextView
- Subject: Re: Problem with RTF and NSTextView
- From: tony cate <email@hidden>
- Date: Fri, 14 Nov 2003 16:33:04 -0600
Admittedly, this is just a guess, but It might have something to do
with you trying to write a textView out instead of the contents of the
textView. Try pulling the attributedString out of the textView and
write it to the file.
On Nov 14, 2003, at 1:16 PM, 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?
Brant Sears
_______________________________________________
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.