• 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: 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.


References: 
 >Re: HTML Notification (From: Dan Wood <email@hidden>)

  • Prev by Date: Re: How to get scripting to work without NSApplication
  • Next by Date: drawing problem after multiple overlapping sheets
  • Previous by thread: notification before dockMenu is shown
  • Next by thread: File path from NSFileSystemFileNumber
  • Index(es):
    • Date
    • Thread