Mac OS X Reference Library Apple Developer Connection spyglass button

DOMNode Additions Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/WebKit.framework
Availability
Available in Mac OS X v10.3.9 and later.
Declared in
DOMExtensions.h
WebDOMOperations.h
Companion guides
Safari Document Object Model Overview
WebKit Objective-C Programming Guide

Overview

Additions to the DOMNode class help convert the structured nodes of DOM content into a rich web-viewable form.

Tasks

Creating Archives

Obtaining Layout Rectangles

Instance Methods

boundingBox

Returns a rectangle that bounds the onscreen rendering of the node.

- (NSRect)boundingBox

Return Value

The rectangle that represents the bounding box of the onscreen rendering of the node.

Availability
Declared In
DOMExtensions.h

lineBoxRects

Returns the rectangles that bound each line of text in the node.

- (NSArray *)lineBoxRects

Return Value

An array of rectangles, in which each rectangle represents the bounding box of a line of text in the node.

Availability
Declared In
DOMExtensions.h

webArchive

Returns a web archive of the content of the node and its children.

- (WebArchive *)webArchive

Return Value

A web archive of the content of the node and its children.

Availability
Declared In
WebDOMOperations.h

Last updated: 2009-02-04

Did this document help you? Yes It's good, but... Not helpful...