• 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: Looking for HTML viewer method.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for HTML viewer method.


  • Subject: Re: Looking for HTML viewer method.
  • From: Scott Anguish <email@hidden>
  • Date: Sat, 20 Apr 2002 17:07:02 -0400

On Saturday, April 20, 2002, at 04:56 PM, Rich Van Deren (d8h>>d;) wrote:

> We can view HTML in textedit. But I can not see how it is done. Must
> your 'read' a file. If you have some html in memory somewhere can you
> reder the HTML?
>


Load the HTML into an NSAttributedString

initWithHTML:documentAttributes:

- (id)initWithHTML:(NSData *)data documentAttributes:(NSDictionary
**)docAttributes

Initializes and returns a new NSAttributedString from HTML contained in
data. Also returns by reference in docAttributes a dictionary containing
document-level attributes described in "Constants". docAttributes can be
NULL, in which case no document attributes are returned. Returns nil if
data can't be decoded.
_______________________________________________
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.

References: 
 >Looking for HTML viewer method. (From: Rich Van Deren (äèä) <email@hidden>)

  • Prev by Date: Looking for HTML viewer method.
  • Next by Date: Setting divider position of NSSplitView?
  • Previous by thread: Looking for HTML viewer method.
  • Next by thread: Setting divider position of NSSplitView?
  • Index(es):
    • Date
    • Thread