• 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: HTML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTML


  • Subject: Re: HTML
  • From: email@hidden
  • Date: Wed, 6 Feb 2002 09:57:24 -0800

Is there an easy way to get HTML out of an NSTextView (other than by using
the GnuStep NSTextView, that is).?

It looks like you can get HTML into an NSAtributedString with the
NSAttributedString additions, but I don't see a way to get it out.

You are correct, you can't get it out. This is, at bottom, because doing a high-quality RTFD-to-HTML conversion is quite a difficult problem. Particularly if you then want the HTML to work in OS X apps like TextEdit, which do not currently support CSS -- at that point I would say it is not difficult, but impossible. The conversion would necessarily be very lossy and would produce very questionable HTML, and so it was not done. (I can state this because I would have been the one to do it :->).

Ben Haller
Stick Software
_______________________________________________
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.

  • Prev by Date: Re: determining availability of a given glyph via NSFont
  • Next by Date: Re: HTML
  • Previous by thread: Re: HTML
  • Next by thread: " in a string (newbie)
  • Index(es):
    • Date
    • Thread