• 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: NSTextView with RTF as string?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView with RTF as string?


  • Subject: Re: NSTextView with RTF as string?
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 6 May 2005 15:02:13 -0700


On May 6, 2005, at 2:34 PM, John Timmer wrote:

Thanks for the pointers.  I’d been using RTF because I’ve got user-generated RTF information stored in Core Data objects as data, and I couldn’t come up with a clean way to merge that into HTML text.  I guess if I build up the table using HTML and then convert that to RTF, I can get everything into one container.

Generally speaking, the easiest way to merge pieces of text is to convert them to attributed strings and work with those.  Raw RTF is not usually suitable for concatenation, substring, or insertion operations.  HTML may be in certain cases, but only if you understand the structure of the pieces being combined.  

Douglas Davidson

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: NSTextView with RTF as string? (From: John Timmer <email@hidden>)

  • Prev by Date: Re: Function to write to one pixel?
  • Next by Date: Re: Displaying HTML in an NSTextView
  • Previous by thread: Re: NSTextView with RTF as string?
  • Next by thread: Mirrored data
  • Index(es):
    • Date
    • Thread