Re: How to display HTML in proper format in a NSTextView
Re: How to display HTML in proper format in a NSTextView
- Subject: Re: How to display HTML in proper format in a NSTextView
- From: Jens Alfke <email@hidden>
- Date: Tue, 29 Nov 2011 09:31:51 -0800
On Nov 29, 2011, at 1:27 AM, Sandeep Mohan Bhandarkar wrote:
> Here htmlData is an NSData object that has been initialized with the contents of an HTML File. However on doing this the HTML Displayed in the Text view does not seem to be formatted correctly. Please see the figure below.
An NSTextView isn’t a WebView; it’s an entirely different layout engine. It can’t display everything that can be represented in HTML, just the basics. If you need to display HTML content accurately you’ll need to use a WebView.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden