Mac Developer Library

Developer

WebKit Framework Reference WebFrameView Class Reference

Options
Deployment Target:

On This Page
Language:

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.

  • The web frame. (read-only)

    Declaration

    Swift

    var webFrame: WebFrame! { get }

    Objective-C

    @property(nonatomic, readonly, strong) WebFrame *webFrame

    Availability

    Available in OS X v10.2 and later.

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

    Declaration

    Swift

    var allowsScrolling: Bool

    Objective-C

    @property(nonatomic) BOOL allowsScrolling

    Discussion

    If YEStrue, scrolling is allowed; if NOfalse, it is not. If the frame contains a scrolling element, then that value is used as the default; otherwise, the default is YEStrue.

    Availability

    Available in OS X v10.2 and later.