• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Add rtf line to RTF file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Add rtf line to RTF file
      • From: email@hidden
References: 
 >Add rtf line to RTF file (From: email@hidden)

  • Prev by Date: Re: How to get the Time/Date separators?
  • Next by Date: Has anybody used the Objective-C garbage collector?
  • Previous by thread: Add rtf line to RTF file
  • Next by thread: Re: Add rtf line to RTF file
  • Index(es):
    • Date
    • Thread