Class

WebArchive

A WebArchive object represents a webpage that can be archived—for example, archived on disk or on the pasteboard. A WebArchive object contains the main resource, as well as the subresources and subframes of the main resource. The main resource can be an entire webpage, a portion of a webpage, or some other kind of data such as an image. Use this class to archive webpages, or place a portion of a webpage on the pasteboard, or to represent rich web content in any application.

Declaration

@interface WebArchive : NSObject

Topics

Initializing

- initWithMainResource:subresources:subframeArchives:

Initializes the receiver with a resource and optional subresources and subframe archives..

- initWithData:

Initializes and returns the receiver, specifying the initial content data.

Getting attributes

mainResource

The receiver’s main resource.

subresources

The receiver’s subresources, or nil if there are none.

subframeArchives

Archives representing the receiver’s subresources or nil if there are none.

data

The data representation of the receiver.

Constants

WebArchivePboardType

The pasteboard type for this class.

Relationships

Inherits From

Conforms To

See Also