Re: HTML
Re: HTML
- Subject: Re: HTML
- From: Douglas Davidson <email@hidden>
- Date: Wed, 6 Feb 2002 09:40:01 -0800
On Wednesday, February 6, 2002, at 05:37 AM, Simson Garfinkel wrote:
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.
No, we don't currently provide that. For one thing, HTML is
fundamentally different from attributed text, in that any particular
attributed text could be generated from many, quite different HTML
sources. The attributes we provide are generally fairly straightforward
to represent in HTML, except that in most cases there are different
possible choices for how to represent them. You could probably write an
NSAttributedString to HTML converter yourself without too much
difficulty, that would produce HTML in your preferred style for the use
you have in mind.
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: HTML
- From: Kurt Revis <email@hidden>
References: | |
| >HTML (From: "Simson Garfinkel" <email@hidden>) |