Mac Developer Library

Developer

WebKit Framework Reference

Introduction

Classes   Protocols   Other Reference  

WebKit provides a set of classes to display web content in windows, and implements browser features such as following links when clicked by the user, managing a back-forward list, and managing a history of pages recently visited. WebKit greatly simplifies the complicated process of loading webpages—that is, asynchronously requesting web content from an HTTP server where the response may arrive incrementally, in random order, or partially due to network errors. WebKit also simplifies the process of displaying that content which can contain various MIME types, and compound frame elements each with their own set of scroll bars.

Classes

Class

Abstract

NSObject

NSObject is the root class of most Objective-C class hierarchies.

WebArchive

A WebArchive object represents a webpage that can be archived—for example, archived on disk or on the pasteboard.

WebBackForwardList

A WebBackForwardList object maintains a list of visited pages used to go back and forward to the most recent page.

WebDataSource

WebDataSource encapsulates the web content to be displayed in a web frame view.

WebFrame

A WebFrame object encapsulates the data displayed in a WebFrameView object.

WebHistory

WebHistory objects are used to maintain the pages visited by users.

WebHistoryItem

WebHistoryItem objects encapsulate information about visiting a page so that users can return to that page.

WebPreferences

WebPreferences encapsulates the preferences you can change per WebView object.

WebResource

A WebResource object represents a downloaded URL.

WebScriptObject

A WebScriptObject object is an Objective-C wrapper for a scripting object passed to your application from the scripting environment.

DOMObject

DOMAbstractView

DOMBlob

DOMFile

DOMCounter

DOMCSSRule

DOMCSSCharsetRule

DOMCSSFontFaceRule

DOMCSSImportRule

DOMCSSMediaRule

DOMCSSPageRule

DOMCSSStyleRule

DOMCSSUnknownRule

DOMCSSRuleList

DOMCSSStyleDeclaration

DOMCSSValue

DOMCSSPrimitiveValue

DOMCSSValueList

DOMEvent

DOMMutationEvent

DOMOverflowEvent

DOMProgressEvent

DOMUIEvent

DOMKeyboardEvent

DOMMouseEvent

DOMWheelEvent

DOMFileList

DOMHTMLCollection

DOMHTMLOptionsCollection

DOMImplementation

DOMMediaList

DOMNamedNodeMap

DOMNode

DOMAttr

DOMCharacterData

DOMComment

DOMProcessingInstruction

DOMText

DOMCDATASection

DOMDocument

DOMHTMLDocument

DOMDocumentFragment

DOMDocumentType

DOMElement

DOMHTMLElement

DOMHTMLAnchorElement

DOMHTMLAppletElement

DOMHTMLAreaElement

DOMHTMLBaseElement

DOMHTMLBaseFontElement

DOMHTMLBodyElement

DOMHTMLBRElement

DOMHTMLButtonElement

DOMHTMLDirectoryElement

DOMHTMLDivElement

DOMHTMLDListElement

DOMHTMLEmbedElement

DOMHTMLFieldSetElement

DOMHTMLFontElement

DOMHTMLFormElement

DOMHTMLFrameElement

DOMHTMLFrameSetElement

DOMHTMLHeadElement

DOMHTMLHeadingElement

DOMHTMLHRElement

DOMHTMLHtmlElement

DOMHTMLIFrameElement

DOMHTMLImageElement

DOMHTMLInputElement

DOMHTMLLabelElement

DOMHTMLLegendElement

DOMHTMLLIElement

DOMHTMLLinkElement

DOMHTMLMapElement

DOMHTMLMarqueeElement

DOMHTMLMenuElement

DOMHTMLMetaElement

DOMHTMLModElement

DOMHTMLObjectElement

DOMHTMLOListElement

DOMHTMLOptGroupElement

DOMHTMLOptionElement

DOMHTMLParagraphElement

DOMHTMLParamElement

DOMHTMLPreElement

DOMHTMLQuoteElement

DOMHTMLScriptElement

DOMHTMLSelectElement

DOMHTMLStyleElement

DOMHTMLTableCaptionElement

DOMHTMLTableCellElement

DOMHTMLTableColElement

DOMHTMLTableElement

DOMHTMLTableRowElement

DOMHTMLTableSectionElement

DOMHTMLTextAreaElement

DOMHTMLTitleElement

DOMHTMLUListElement

DOMEntity

DOMEntityReference

DOMNotation

DOMNodeIterator

DOMNodeList

DOMRange

DOMRect

DOMRGBColor

DOMStyleSheet

DOMCSSStyleSheet

DOMStyleSheetList

DOMTreeWalker

DOMXPathExpression

DOMXPathResult

WebUndefined

WebUndefined objects are simply used to represent the JavaScript “undefined” value in methods when bridging between JavaScript and Objective-C.

WKBackForwardList

A WKBackForwardList object is a list of webpages previously visited in a web view that can be reached by going back or forward.

WKBackForwardListItem

A WKBackForwardListItem object represents a webpage in the back-forward list of a web view.

WKFrameInfo

A WKFrameInfo object contains information about a frame on a webpage.

WKNavigation

A WKNavigation object contains information for tracking the loading progress of a webpage.

WKNavigationAction

A WKNavigationAction object contains information about an action that may cause a navigation, used for making policy decisions.

WKNavigationResponse

A WKNavigationResponse object contains information about a navigation response, used for making policy decisions.

WKPreferences

A WKPreferences object encapsulates the preference settings for a web view.

WKProcessPool

A WKProcessPool object represents a pool of Web Content processes.

WKScriptMessage

A WKScriptMessage object contains information about a message sent from a webpage.

WKUserContentController

A WKUserContentController object provides a way for JavaScript to post messages and inject user scripts to a web view.

WKUserScript

A WKUserScript object represents a script that can be injected into a webpage.

WKWebViewConfiguration

A WKWebViewConfiguration object is a collection of properties with which to initialize a web view.

WKWindowFeatures

NSURLDownload

The NSURLDownload class downloads a request asynchronously and saves the data to a file.

WebDownload

WebDownload objects initiate download client requests on behalf of a delegate.

NSView

The NSView class defines the basic drawing, event-handling, and printing architecture of an app.

WebFrameView

WebFrameView objects and their subviews display the web content contained in a frame.

WebView

WebView is the core view class in the WebKit framework that manages interactions between the WebFrame and WebFrameView classes.

WKWebView

A WKWebView object displays interactive web content.

Protocols

Protocol

Abstract

WKNavigationDelegate

A class conforming to the WKNavigationDelegate protocol provides methods for tracking the progress of main frame navigations and for deciding load policy for main frame and subframe navigations.

WKScriptMessageHandler

A class conforming to the WKScriptMessageHandler protocol provides a method for receiving messages from JavaScript running in a webpage.

WKUIDelegate

A class conforming to the WKUIDelegate protocol provides methods for presenting native user interface elements on behalf of a webpage.

WebDocumentRepresentation

This protocol is adopted by document representation classes that handle specific MIME types.

WebDocumentSearching

WebDocumentSearching is an optional protocol for document view objects that support searching.

WebDocumentText

WebDocumentText is an optional protocol for document view objects that display text.

WebDocumentView

This protocol is adopted by the document view of a WebFrameView.

WebEditingDelegate

WebFrameLoadDelegate

WebJavaPlugIn

WebOpenPanelResultListener

WebView user interface delegates that implement the webView:runOpenPanelForFileButtonWithResultListener: method use the methods defined in this protocol to communicate with the listener object.

WebPlugIn

WebPlugInContainer

WebPlugInViewFactory

A WebPlugInViewFactory object is used to create an NSView for a plug-in.

WebPolicyDecisionListener

This protocol enables WebView policy delegates to communicate with listener objects.

WebPolicyDelegate

WebResourceLoadDelegate

WebScripting

WebUIDelegate

Other Reference

Reference

DOMDocument Additions Reference

DOMElement Additions Reference

DOMHTMLDocument Additions Reference

DOMHTMLFrameElement Additions Reference

DOMHTMLIFrameElement Additions Reference

DOMHTMLObjectElement Additions Reference

DOMNode Additions Reference

DOMRange Additions Reference

WebKit Constants Reference