Re: Add rtf line to RTF file
Re: Add rtf line to RTF file
- Subject: Re: Add rtf line to RTF file
- From: email@hidden
- Date: Tue, 22 Oct 2002 09:59:02 +0200
>
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
>
The file in question is a log rtf file. The double conversion (RTF->NSMutableString
and viceversa) is convenience method on little file but with big file is
more time expensive. I need a speed method.
_______________________________________________
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.