Re: Add rtf line to RTF file
Re: Add rtf line to RTF file
- Subject: Re: Add rtf line to RTF file
- From: Douglas Davidson <email@hidden>
- Date: Mon, 21 Oct 2002 10:07:36 -0700
On Monday, October 21, 2002, at 07:39 AM, email@hidden
wrote:
In my application i want to add various line to an rtf file. If i
adding a line created with method RTFDataFromRange: when i close file,
text edit don't show all lines but only the first one. If examining the
rtf file i see that there are more rtf document in only one file.
I simply want adding an rtf line to existing rtf file. How make it???
1) Convert the RTF to an NSMutableAttributedString (with
initWithPath:/URL:/RTF:/RTFD:/RTFDFileWrapper:documentAttributes: or
readFromURL:options:documentAttributes:).
2) Append text to the NSMutableAttributedString.
3) Convert the NSMutableAttributedString back to RTF.
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.