• 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: How to display HTML in proper format in a NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to display HTML in proper format in a NSTextView (From: Sandeep Mohan Bhandarkar <email@hidden>)

  • Prev by Date: Re: NSTableView Bindings and Numbered Lines...
  • Next by Date: Difference between @synchronized and [managedObjectContext lock]?
  • Previous by thread: Re: How to display HTML in proper format in a NSTextView
  • Next by thread: Weird Core Data crash
  • Index(es):
    • Date
    • Thread