• 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: HTML Notification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTML Notification


  • Subject: Re: HTML Notification
  • From: Dan Wood <email@hidden>
  • Date: Sun, 09 Dec 2001 14:01:40 -0800

I was trying to do that a while back, and I came up with a couple of ideas that might work, though I never got around to trying them out.

I think the approach you want to take is to get notified when URL load completes. The HTML parsing probably invokes a bunch of NSURLHandle loads. NSURLHandle does have a "client" mechanism where you can get a method invoked when its data is available, but the problem is that you don't know in advance what is getting loaded and therefore be notified. So you could either fully subclass NSURLHandle, either rolling your own, or finding another subclass that will work, like CURLHandle <http://curlhandle.sourceforge.net/>, and putting in a notification mechanism. Or possibly a simpler method would be to use class posing -- but be careful, NSURLHandle is a class cluster, so you'd want to pose as the NSHTTPURLHandle if you can.

I'd suggestion you add a feature request at bugreport.apple.com to come up with some notification methodology so that what you try to do isn't as difficult as it currently is.

On Friday, December 7, 2001, at 10:31 PM, Dustin Mierau wrote:

Hey,

So I am initializing an NSAttributed string with some rather simple HTML and it seems images are fetched for me (though I might not want this). I am curious, is there a way to know when all images have been downloaded so I could refresh the view? Or just disable this fetching altogether and perhaps do it myself?

Thanks,
-dustin
_______________________________________________
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.



--
Dan Wood
email@hidden
http://www.karelia.com/
Watson for Mac OS X: http://www.karelia.com/watson/
Mac OS X Developer: Online Resume: http://www.karelia.com/resume.html


  • Follow-Ups:
    • Re: HTML Notification
      • From: Scott Anguish <email@hidden>
    • adding MessageText in Open/Save Panel
      • From: Jake <email@hidden>
References: 
 >HTML Notification (From: Dustin Mierau <email@hidden>)

  • Prev by Date: Re: Sheets in java
  • Next by Date: NOT Drag and Drop onto the Desktop
  • Previous by thread: HTML Notification
  • Next by thread: adding MessageText in Open/Save Panel
  • Index(es):
    • Date
    • Thread