Re: HTML Notification
Re: HTML Notification
- Subject: Re: HTML Notification
- From: Scott Anguish <email@hidden>
- Date: Mon, 10 Dec 2001 02:05:53 -0500
In the past I've registered for notifications that were posted as these
updated.. but it's a totally unsupported manner of doing it... if you
want to do this, you'd need to register for all notifications, set the
notification handler to log them, and then cause them to fire by loading
an HTML page, then look at the data.
I remember a few years ago I asked if it was something that was going to
be supported.. and was told no.. :-(
On Sunday, December 9, 2001, at 05:01 PM, Dan Wood wrote:
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.