Class

WebFrameView

WebFrameView objects and their subviews display the web content contained in a frame. You never create instances of WebFrameView directly—WebView objects create and manage a hierarchy of WebFrameView objects, one for each frame. WebFrameView objects use a scroll view whose document view conforms to the WebDocumentView protocol.

Declaration

@interface WebFrameView : NSView

Topics

Getting the Web Frame

webFrame

The web frame.

Getting Subviews

documentView

The subview that displays the web content.

Setting Scrolling Behavior

allowsScrolling

A Boolean that indicates whether the frame view should allow users to scroll.

Printing Views

canPrintHeadersAndFooters

A Boolean value indicating whether the receiver can print headers and footers.

- printOperationWithPrintInfo:

Returns a print operation object to print this frame.

documentViewShouldHandlePrint

A Boolean value indicating whether the document view should handle a print operation.

- printDocumentView

Prints the receiver.

Relationships

Inherits From

See Also

Working with Frames (Legacy)

WebFrame

A WebFrame object encapsulates the data displayed in a WebFrameView object. There is one WebFrame object per frame displayed in a WebView. An entire webpage is represented by a hierarchy of WebFrame objects in which the root object is called the main frame.

Deprecated
WebDataSource

WebDataSource encapsulates the web content to be displayed in a web frame view. A WebDataSource object has a representation object, conforming to the WebDocumentRepresentation protocol, that holds the data in an appropriate format depending on the MIME type. You can extend WebKit to support new MIME types by implementing your own view and representation classes, and specifying the mapping between them using the registerViewClass:representationClass:forMIMEType: WebView class method.

Deprecated