FROM : Nicko van Someren
DATE : Sun May 01 15:20:26 2005
On 19 Apr 2005, at 19:04, Charles Srstka wrote:
> According to David Hyatt's weblog, the entire level 2 DOM has been
> exposed as an Objective-C API in Mac OS X 10.3.9 / Safari 1.3:
>
> http://weblogs.mozillazine.org/hyatt/archives/2005_04.html#007962
>
> However, for the life of me, I cannot find any documentation (or
> headers) for this new API. Does anyone know where I could find
> documentation for this, or have the docs just not been released yet?
So, now that the Tiger is out of the bag I can tell you that some parts
of this are documented in the ADC Reference Library that comes with
Xcode 2. There are headers for accessing the DOM in the WebKit
framework with Tiger which seem to be missing with the WebKit that
comes with Safari 1.3 for Panther but the code basically seems to be
the same. The copyright notice at the top of the DOM headers
explicitly states that redistribution in source form is acceptable
providing that the copyright message is left intact, so if you find
someone local with Xcode 2 they can pass the headers on to you.
The Objective-C methods are a little odd, mostly to keep the names as
similar as possible to the W3C DOM specification. Beyond this the
documentation is fairly scant, save to point you in the direction of
the W3C for info on how to use DOM.
The WebKit in Safari 1.3 does have some really very interesting
features which, coupled with the ability to access the DOM, look like
they may spawn some nice tools. For instance, there is a rather brief
section that mentions you can enable editing in a WebView just by
going: [webView setEditable:YES] Of course from there you just need to
add the appropriate menu items for manipulating the markup and you have
a full WYSIWYG HTML editor!
Nicko
DATE : Sun May 01 15:20:26 2005
On 19 Apr 2005, at 19:04, Charles Srstka wrote:
> According to David Hyatt's weblog, the entire level 2 DOM has been
> exposed as an Objective-C API in Mac OS X 10.3.9 / Safari 1.3:
>
> http://weblogs.mozillazine.org/hyatt/archives/2005_04.html#007962
>
> However, for the life of me, I cannot find any documentation (or
> headers) for this new API. Does anyone know where I could find
> documentation for this, or have the docs just not been released yet?
So, now that the Tiger is out of the bag I can tell you that some parts
of this are documented in the ADC Reference Library that comes with
Xcode 2. There are headers for accessing the DOM in the WebKit
framework with Tiger which seem to be missing with the WebKit that
comes with Safari 1.3 for Panther but the code basically seems to be
the same. The copyright notice at the top of the DOM headers
explicitly states that redistribution in source form is acceptable
providing that the copyright message is left intact, so if you find
someone local with Xcode 2 they can pass the headers on to you.
The Objective-C methods are a little odd, mostly to keep the names as
similar as possible to the W3C DOM specification. Beyond this the
documentation is fairly scant, save to point you in the direction of
the W3C for info on how to use DOM.
The WebKit in Safari 1.3 does have some really very interesting
features which, coupled with the ability to access the DOM, look like
they may spawn some nice tools. For instance, there is a rather brief
section that mentions you can enable editing in a WebView just by
going: [webView setEditable:YES] Of course from there you just need to
add the appropriate menu items for manipulating the markup and you have
a full WYSIWYG HTML editor!
Nicko
| Related mails | Author | Date |
|---|---|---|
| Charles Srstka | Apr 19, 20:04 | |
| Nicko van Someren | May 1, 15:20 |






Cocoa mail archive

