• 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: NSTextView displaying web page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView displaying web page


  • Subject: Re: NSTextView displaying web page
  • From: email@hidden
  • Date: Fri, 8 Mar 2002 14:44:03 -0800

I have a NSTextView that will download and displays a web page. Right
now, I'm using NSAttributedString's initWithHTML: method, but that isn't
working well enough for me, as it does not load images. I looked in OWF,
but that does not seem to do anything involving the actual rendering of
HTML.

Hmm. It's been a long time now since I looked at the code, but I *thought* loading of images actually worked quite nicely with this API. Images should be loaded in the background using NSURL and redisplayed as they come in. However, I could be thinking of the (private to Apple) HTMLView usage case; certainly some things don't work as well when using the Kit API, because NSAttributedString isn't quite rich enough to represent HTML in some ways. Are you doing anything funny at all with the attributed string you get from the Kit that might break the image downloading? Possibly Apple broke this all by themselves since I left, too; what build are you running on?
If Omni doesn't have anything for this (and I don't know about that), then you could look into the (as mentioned, private) HTMLView class. The GhettoWeb project is perhaps a good example of doing this; it can be downloaded from http://www.koder.org/ghettoweb.tgz.
Good luck.

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: Refreshing Services menu
  • Next by Date: Re: Refreshing Services menu
  • Previous by thread: NSTextView displaying web page
  • Next by thread: Refreshing Services menu
  • Index(es):
    • Date
    • Thread