Expand description
§Bindings to the WebKit
framework
See Apple’s docs and the general docs on framework crates for more information.
§Example
ⓘ
#![deny(unsafe_op_in_unsafe_fn)]
#![allow(clippy::incompatible_msrv)]
#![cfg_attr(not(target_os = "macos"), allow(dead_code, unused))]
use core::cell::OnceCell;
use objc2::{
define_class, msg_send,
rc::Retained,
runtime::{AnyObject, ProtocolObject, Sel},
sel, DefinedClass, MainThreadMarker, MainThreadOnly,
};
#[allow(deprecated)]
#[cfg(target_os = "macos")]
use objc2_app_kit::{
NSApplication, NSApplicationActivationPolicy, NSApplicationDelegate, NSBackingStoreType,
NSBezelStyle, NSButton, NSColor, NSControl, NSControlTextEditingDelegate, NSLayoutAttribute,
NSMenu, NSMenuItem, NSStackView, NSStackViewDistribution, NSTextField, NSTextFieldDelegate,
NSTextView, NSUserInterfaceLayoutOrientation, NSWindow, NSWindowStyleMask,
};
use objc2_foundation::{
ns_string, NSNotification, NSObject, NSObjectProtocol, NSPoint, NSRect, NSSize, NSURLRequest,
NSURL,
};
#[cfg(target_os = "macos")]
use objc2_web_kit::{WKNavigation, WKNavigationDelegate, WKWebView};
macro_rules! idcell {
($name:ident => $this:expr) => {
$this.ivars().$name.set($name).expect(&format!(
"ivar should not already be initialized: `{}`",
stringify!($name)
));
};
($name:ident <= $this:expr) => {
#[rustfmt::skip]
let Some($name) = $this.ivars().$name.get() else {
unreachable!(
"ivar should be initialized: `{}`",
stringify!($name)
)
};
};
}
#[derive(Default)]
struct Ivars {
#[cfg(target_os = "macos")]
nav_url: OnceCell<Retained<NSTextField>>,
#[cfg(target_os = "macos")]
web_view: OnceCell<Retained<WKWebView>>,
#[cfg(target_os = "macos")]
window: OnceCell<Retained<NSWindow>>,
}
define_class!(
// SAFETY:
// - The superclass NSObject does not have any subclassing requirements.
// - `MainThreadOnly` is correct, since this is an application delegate.
// - `Delegate` does not implement `Drop`.
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
#[name = "Delegate"]
#[ivars = Ivars]
struct Delegate;
unsafe impl NSObjectProtocol for Delegate {}
#[cfg(target_os = "macos")]
unsafe impl NSApplicationDelegate for Delegate {
#[unsafe(method(applicationDidFinishLaunching:))]
#[allow(non_snake_case)]
unsafe fn applicationDidFinishLaunching(&self, _notification: &NSNotification) {
let mtm = self.mtm();
// create the app window
let window = {
let content_rect = NSRect::new(NSPoint::new(0., 0.), NSSize::new(1024., 768.));
let style = NSWindowStyleMask::Closable
| NSWindowStyleMask::Resizable
| NSWindowStyleMask::Titled;
let backing_store_type = NSBackingStoreType::Buffered;
let flag = false;
unsafe {
NSWindow::initWithContentRect_styleMask_backing_defer(
NSWindow::alloc(mtm),
content_rect,
style,
backing_store_type,
flag,
)
}
};
// create the web view
let web_view = {
let frame_rect = NSRect::ZERO;
unsafe { WKWebView::initWithFrame(WKWebView::alloc(mtm), frame_rect) }
};
// create the nav bar view
let nav_bar = {
let frame_rect = NSRect::ZERO;
let this =
unsafe { NSStackView::initWithFrame(NSStackView::alloc(mtm), frame_rect) };
unsafe {
this.setOrientation(NSUserInterfaceLayoutOrientation::Horizontal);
this.setAlignment(NSLayoutAttribute::Height);
this.setDistribution(NSStackViewDistribution::Fill);
this.setSpacing(0.);
}
this
};
// create the nav buttons view
let nav_buttons = {
let frame_rect = NSRect::ZERO;
let this =
unsafe { NSStackView::initWithFrame(NSStackView::alloc(mtm), frame_rect) };
unsafe {
this.setOrientation(NSUserInterfaceLayoutOrientation::Horizontal);
this.setAlignment(NSLayoutAttribute::Height);
this.setDistribution(NSStackViewDistribution::FillEqually);
this.setSpacing(0.);
}
this
};
// create the back button
let back_button = {
// configure the button to navigate the webview backward
let title = ns_string!("back");
let target = Some::<&AnyObject>(&web_view);
let action = Some(sel!(goBack));
let this =
unsafe { NSButton::buttonWithTitle_target_action(title, target, action, mtm) };
#[allow(deprecated)]
unsafe {
this.setBezelStyle(NSBezelStyle::ShadowlessSquare)
};
this
};
// create the forward button
let forward_button = {
// configure the button to navigate the web view forward
let title = ns_string!("forward");
let target = Some::<&AnyObject>(&web_view);
let action = Some(sel!(goForward));
let this =
unsafe { NSButton::buttonWithTitle_target_action(title, target, action, mtm) };
#[allow(deprecated)]
unsafe {
this.setBezelStyle(NSBezelStyle::ShadowlessSquare)
};
this
};
unsafe {
nav_buttons.addArrangedSubview(&back_button);
nav_buttons.addArrangedSubview(&forward_button);
}
// create the url text field
let nav_url = {
let frame_rect = NSRect::ZERO;
let this =
unsafe { NSTextField::initWithFrame(NSTextField::alloc(mtm), frame_rect) };
unsafe {
this.setDrawsBackground(true);
this.setBackgroundColor(Some(&NSColor::lightGrayColor()));
this.setTextColor(Some(&NSColor::blackColor()));
}
this
};
unsafe {
nav_bar.addArrangedSubview(&nav_buttons);
nav_bar.addArrangedSubview(&nav_url);
}
// create the window content view
let content_view = {
let frame_rect = window.frame();
let this =
unsafe { NSStackView::initWithFrame(NSStackView::alloc(mtm), frame_rect) };
unsafe {
this.setOrientation(NSUserInterfaceLayoutOrientation::Vertical);
this.setAlignment(NSLayoutAttribute::Width);
this.setDistribution(NSStackViewDistribution::Fill);
this.setSpacing(0.);
}
this
};
unsafe {
content_view.addArrangedSubview(&nav_bar);
content_view.addArrangedSubview(&web_view);
}
unsafe {
// handle input from text field (on <ENTER>, load URL from text field in web view)
let object = ProtocolObject::from_ref(self);
nav_url.setDelegate(Some(object));
// handle nav events from web view (on finished navigating, update text area with current URL)
let object = ProtocolObject::from_ref(self);
web_view.setNavigationDelegate(Some(object));
}
// create the menu with a "quit" entry
unsafe {
let menu = NSMenu::initWithTitle(NSMenu::alloc(mtm), ns_string!(""));
let menu_app_item = NSMenuItem::initWithTitle_action_keyEquivalent(
NSMenuItem::alloc(mtm),
ns_string!(""),
None,
ns_string!(""),
);
let menu_app_menu = NSMenu::initWithTitle(NSMenu::alloc(mtm), ns_string!(""));
menu_app_menu.addItemWithTitle_action_keyEquivalent(
ns_string!("Quit"),
Some(sel!(terminate:)),
ns_string!("q"),
);
menu_app_item.setSubmenu(Some(&menu_app_menu));
menu.addItem(&menu_app_item);
let app = NSApplication::sharedApplication(mtm);
app.setMainMenu(Some(&menu));
}
// configure the window
window.setContentView(Some(&content_view));
window.center();
window.setTitle(ns_string!("browser example"));
window.makeKeyAndOrderFront(None);
// request the web view navigate to a page
unsafe {
let request = {
let url_string = ns_string!("https://google.com");
let url = NSURL::URLWithString(url_string).expect("URL should parse");
NSURLRequest::requestWithURL(&url)
};
web_view.loadRequest(&request);
}
idcell!(nav_url => self);
idcell!(web_view => self);
idcell!(window => self);
}
}
#[cfg(target_os = "macos")]
unsafe impl NSControlTextEditingDelegate for Delegate {
#[unsafe(method(control:textView:doCommandBySelector:))]
#[allow(non_snake_case)]
unsafe fn control_textView_doCommandBySelector(
&self,
_control: &NSControl,
text_view: &NSTextView,
command_selector: Sel,
) -> bool {
idcell!(web_view <= self);
if command_selector == sel!(insertNewline:) {
if let Some(url) = unsafe { NSURL::URLWithString(&text_view.string()) } {
unsafe { web_view.loadRequest(&NSURLRequest::requestWithURL(&url)) };
return true.into();
}
}
false
}
}
#[cfg(target_os = "macos")]
unsafe impl NSTextFieldDelegate for Delegate {}
#[cfg(target_os = "macos")] // TODO: Enable this on iOS
unsafe impl WKNavigationDelegate for Delegate {
#[unsafe(method(webView:didFinishNavigation:))]
#[allow(non_snake_case)]
unsafe fn webView_didFinishNavigation(
&self,
web_view: &WKWebView,
_navigation: Option<&WKNavigation>,
) {
idcell!(nav_url <= self);
unsafe {
if let Some(url) = web_view.URL().and_then(|url| url.absoluteString()) {
nav_url.setStringValue(&url);
}
}
}
}
);
impl Delegate {
fn new(mtm: MainThreadMarker) -> Retained<Self> {
let this = Self::alloc(mtm);
let this = this.set_ivars(Ivars::default());
unsafe { msg_send![super(this), init] }
}
}
#[cfg(target_os = "macos")]
fn main() {
let mtm = MainThreadMarker::new().unwrap();
let app = NSApplication::sharedApplication(mtm);
app.setActivationPolicy(NSApplicationActivationPolicy::Regular);
// configure the application delegate
let delegate = Delegate::new(mtm);
let object = ProtocolObject::from_ref(&*delegate);
app.setDelegate(Some(object));
// run the app
app.run();
}
#[cfg(not(target_os = "macos"))]
fn main() {
panic!("This example is currently only supported on macOS");
}
Structs§
- DOMAbstract
View Deprecated DOMAbstractView
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMAttr
Deprecated DOMAttr
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMBlob
Deprecated DOMBlob
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCDATA
Section Deprecated DOMCDATASection
andDOMCharacterData
andDOMNode
andDOMObject
andDOMText
andWebScriptObject
- Apple’s documentation
- DOMCSS
Charset Rule Deprecated DOMCSSCharsetRule
andDOMCSSRule
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCSS
Font Face Rule Deprecated DOMCSSFontFaceRule
andDOMCSSRule
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCSS
Import Rule Deprecated DOMCSSImportRule
andDOMCSSRule
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCSS
Media Rule Deprecated DOMCSSMediaRule
andDOMCSSRule
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCSS
Page Rule Deprecated DOMCSSPageRule
andDOMCSSRule
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCSS
Primitive Value Deprecated DOMCSSPrimitiveValue
andDOMCSSValue
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCSS
Rule Deprecated DOMCSSRule
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCSS
Rule List Deprecated DOMCSSRuleList
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCSS
Style Declaration Deprecated DOMCSSStyleDeclaration
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCSS
Style Rule Deprecated DOMCSSRule
andDOMCSSStyleRule
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCSS
Style Sheet Deprecated DOMCSSStyleSheet
andDOMObject
andDOMStyleSheet
andWebScriptObject
- Apple’s documentation
- DOMCSS
Unknown Rule Deprecated DOMCSSRule
andDOMCSSUnknownRule
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCSS
Value Deprecated DOMCSSValue
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCSS
Value List Deprecated DOMCSSValue
andDOMCSSValueList
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCharacter
Data Deprecated DOMCharacterData
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMComment
Deprecated DOMCharacterData
andDOMComment
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMCounter
Deprecated DOMCounter
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMDocument
Deprecated DOMDocument
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMDocument
Fragment Deprecated DOMDocumentFragment
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMDocument
Type Deprecated DOMDocumentType
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMElement
Deprecated DOMElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMEntity
Deprecated DOMEntity
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMEntity
Reference Deprecated DOMEntityReference
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMEvent
Deprecated DOMEvent
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMEvent
Exception Code Deprecated DOMEventException
- Apple’s documentation
- DOMException
Code Deprecated DOMException
- Apple’s documentation
- DOMFile
Deprecated DOMBlob
andDOMFile
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMFile
List Deprecated DOMFileList
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Anchor Element Deprecated DOMElement
andDOMHTMLAnchorElement
andDOMHTMLElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Applet Element Deprecated DOMElement
andDOMHTMLAppletElement
andDOMHTMLElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Area Element Deprecated DOMElement
andDOMHTMLAreaElement
andDOMHTMLElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTMLBR
Element Deprecated DOMElement
andDOMHTMLBRElement
andDOMHTMLElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Base Element Deprecated DOMElement
andDOMHTMLBaseElement
andDOMHTMLElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Base Font Element Deprecated DOMElement
andDOMHTMLBaseFontElement
andDOMHTMLElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Body Element Deprecated DOMElement
andDOMHTMLBodyElement
andDOMHTMLElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Button Element Deprecated DOMElement
andDOMHTMLButtonElement
andDOMHTMLElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Collection Deprecated DOMHTMLCollection
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTMLD
List Element Deprecated DOMElement
andDOMHTMLDListElement
andDOMHTMLElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Directory Element Deprecated DOMElement
andDOMHTMLDirectoryElement
andDOMHTMLElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
DivElement Deprecated DOMElement
andDOMHTMLDivElement
andDOMHTMLElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Document Deprecated DOMDocument
andDOMHTMLDocument
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Element Deprecated DOMElement
andDOMHTMLElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Embed Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLEmbedElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Field SetElement Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLFieldSetElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Font Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLFontElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Form Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLFormElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Frame Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLFrameElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Frame SetElement Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLFrameSetElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTMLHR
Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLHRElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Head Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLHeadElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Heading Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLHeadingElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Html Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLHtmlElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTMLI
Frame Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLIFrameElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Image Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLImageElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Input Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLInputElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTMLLI
Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLLIElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Label Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLLabelElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Legend Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLLegendElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Link Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLLinkElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
MapElement Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLMapElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Marquee Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLMarqueeElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Menu Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLMenuElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Meta Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLMetaElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
ModElement Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLModElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTMLO
List Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLOListElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Object Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLObjectElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
OptGroup Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLOptGroupElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Option Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLOptionElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Options Collection Deprecated DOMHTMLOptionsCollection
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Paragraph Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLParagraphElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Param Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLParamElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
PreElement Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLPreElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Quote Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLQuoteElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Script Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLScriptElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Select Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLSelectElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Style Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLStyleElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Table Caption Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLTableCaptionElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Table Cell Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLTableCellElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Table ColElement Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLTableColElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Table Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLTableElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Table RowElement Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLTableRowElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Table Section Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLTableSectionElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Text Area Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLTextAreaElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTML
Title Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLTitleElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMHTMLU
List Element Deprecated DOMElement
andDOMHTMLElement
andDOMHTMLUListElement
andDOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMImplementation
Deprecated DOMImplementation
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMKeyboard
Event Deprecated DOMEvent
andDOMKeyboardEvent
andDOMObject
andDOMUIEvent
andWebScriptObject
- Apple’s documentation
- DOMMedia
List Deprecated DOMMediaList
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMMouse
Event Deprecated DOMEvent
andDOMMouseEvent
andDOMObject
andDOMUIEvent
andWebScriptObject
- Apple’s documentation
- DOMMutation
Event Deprecated DOMEvent
andDOMMutationEvent
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMNamed
Node Map Deprecated DOMNamedNodeMap
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMNode
Deprecated DOMNode
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMNode
Iterator Deprecated DOMNodeIterator
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMNode
List Deprecated DOMNodeList
andDOMObject
andWebScriptObject
- Apple’s documentation
- DOMObject
Deprecated DOMObject
andWebScriptObject
- Apple’s documentation
- DOMOverflow
Event Deprecated DOMEvent
andDOMObject
andDOMOverflowEvent
andWebScriptObject
- Apple’s documentation
- DOMProcessing
Instruction Deprecated DOMCharacterData
andDOMNode
andDOMObject
andDOMProcessingInstruction
andWebScriptObject
- Apple’s documentation
- DOMProgress
Event Deprecated DOMEvent
andDOMObject
andDOMProgressEvent
andWebScriptObject
- Apple’s documentation
- DOMRGB
Color Deprecated DOMObject
andDOMRGBColor
andWebScriptObject
- Apple’s documentation
- DOMRange
Deprecated DOMObject
andDOMRange
andWebScriptObject
- Apple’s documentation
- DOMRange
Exception Code Deprecated DOMRangeException
- Apple’s documentation
- DOMRect
Deprecated DOMObject
andDOMRect
andWebScriptObject
- Apple’s documentation
- DOMStyle
Sheet Deprecated DOMObject
andDOMStyleSheet
andWebScriptObject
- Apple’s documentation
- DOMStyle
Sheet List Deprecated DOMObject
andDOMStyleSheetList
andWebScriptObject
- Apple’s documentation
- DOMText
Deprecated DOMCharacterData
andDOMNode
andDOMObject
andDOMText
andWebScriptObject
- Apple’s documentation
- DOMTree
Walker Deprecated DOMObject
andDOMTreeWalker
andWebScriptObject
- Apple’s documentation
- DOMUI
Event Deprecated DOMEvent
andDOMObject
andDOMUIEvent
andWebScriptObject
- Apple’s documentation
- DOMWheel
Event Deprecated DOMEvent
andDOMMouseEvent
andDOMObject
andDOMUIEvent
andDOMWheelEvent
andWebScriptObject
- Apple’s documentation
- DOMX
Path Exception Code Deprecated DOMXPathException
- Apple’s documentation
- DOMX
Path Expression Deprecated DOMObject
andDOMXPathExpression
andWebScriptObject
- Apple’s documentation
- DOMX
Path Result Deprecated DOMObject
andDOMXPathResult
andWebScriptObject
- Apple’s documentation
- WKAudiovisual
Media Types WKWebViewConfiguration
- The types of audiovisual media which will require a user gesture to begin playing.
- WKBack
Forward List WKBackForwardList
- A WKBackForwardList object is a list of webpages previously visited in a web view that can be reached by going back or forward.
- WKBack
Forward List Item WKBackForwardListItem
- A WKBackForwardListItem object represents a webpage in the back-forward list of a web view.
- WKContent
Mode WKWebpagePreferences
- A content mode represents the type of content to load, as well as additional layout and rendering adaptations that are applied as a result of loading the content
- WKContent
Rule List WKContentRuleList
- Apple’s documentation
- WKContent
Rule List Store WKContentRuleListStore
- Apple’s documentation
- WKContent
World WKContentWorld
- A WKContentWorld object allows you to separate your application’s interaction with content displayed in a WKWebView into different roles that cannot interfere with one another.
- WKCookie
Policy WKHTTPCookieStore
- Apple’s documentation
- WKDialog
Result WKUIDelegate
- Constants returned by showLockdownModeFirstUseMessage to indicate how WebKit should treat first use.
- WKDownload
WKDownload
- Apple’s documentation
- WKDownload
Placeholder Policy WKDownloadDelegate
- Apple’s documentation
- WKDownload
Redirect Policy WKDownloadDelegate
- Apple’s documentation
- WKError
Code WKError
- Constants used by NSError to indicate errors in the WebKit domain.
- WKFind
Configuration WKFindConfiguration
- Apple’s documentation
- WKFind
Result WKFindResult
- Apple’s documentation
- WKFrame
Info WKFrameInfo
- A WKFrameInfo object contains information about a frame on a webpage.
- WKFullscreen
State WKWebView
- Apple’s documentation
- WKHTTP
Cookie Store WKHTTPCookieStore
- A WKHTTPCookieStore object allows managing the HTTP cookies associated with a particular WKWebsiteDataStore.
- WKInactive
Scheduling Policy WKPreferences
- Apple’s documentation
- WKMedia
Capture State WKWebView
- Apple’s documentation
- WKMedia
Capture Type WKUIDelegate
- Apple’s documentation
- WKMedia
Playback State WKWebView
- Apple’s documentation
- WKNavigation
WKNavigation
- A WKNavigation object can be used for tracking the loading progress of a webpage.
- WKNavigation
Action WKNavigationAction
- A WKNavigationAction object contains information about an action that may cause a navigation, used for making policy decisions.
- WKNavigation
Action Policy WKNavigationDelegate
- The policy to pass back to the decision handler from the webView:decidePolicyForNavigationAction:decisionHandler: method.
- WKNavigation
Response WKNavigationResponse
- Contains information about a navigation response, used for making policy decisions.
- WKNavigation
Response Policy WKNavigationDelegate
- The policy to pass back to the decision handler from the webView:decidePolicyForNavigationResponse:decisionHandler: method.
- WKNavigation
Type WKNavigationAction
- The type of action triggering a navigation.
- WKOpen
Panel Parameters WKOpenPanelParameters
- WKOpenPanelParameters contains parameters that a file upload control has specified.
- WKPDF
Configuration WKPDFConfiguration
- Apple’s documentation
- WKPermission
Decision WKUIDelegate
- Apple’s documentation
- WKPreferences
WKPreferences
- A WKPreferences object encapsulates the preference settings for a web view. The preferences object associated with a web view is specified by its web view configuration.
- WKProcess
Pool WKProcessPool
- A WKProcessPool object represents a pool of web content processes. The process pool associated with a web view is specified by its web view configuration. Each web view is given its own web content process until an implementation-defined process limit is reached; after that, web views with the same process pool end up sharing web content processes.
- WKScript
Message WKScriptMessage
- A WKScriptMessage object contains information about a message sent from a webpage.
- WKSecurity
Origin WKSecurityOrigin
- A WKSecurityOrigin object contains information about a security origin.
- WKSnapshot
Configuration WKSnapshotConfiguration
- Apple’s documentation
- WKUser
Content Controller WKUserContentController
- A WKUserContentController object provides a way for JavaScript to post messages to a web view. The user content controller associated with a web view is specified by its web view configuration.
- WKUser
Interface Direction Policy WKWebViewConfiguration
- The policy used to determine the directionality of user interface elements inside a web view.
- WKUser
Script WKUserScript
- A
- WKUser
Script Injection Time WKUserScript
- when a user script should be injected into a webpage.
- WKWeb
View Configuration WKWebViewConfiguration
- A WKWebViewConfiguration object is a collection of properties with which to initialize a web view.
- WKWebpage
Preferences WKWebpagePreferences
- A WKWebpagePreferences object is a collection of properties that determine the preferences to use when loading and rendering a page.
- WKWebpage
Preferences Upgrade ToHTTPS Policy WKWebpagePreferences
- A secure navigation policy represents whether or not there is a preference for loading a webpage with https, and how failures should be handled.
- WKWebsite
Data Record WKWebsiteDataRecord
- A WKWebsiteDataRecord represents website data, grouped by domain name using the public suffix list.
- WKWebsite
Data Store WKWebsiteDataStore
- A WKWebsiteDataStore represents various types of data that a website might make use of. This includes cookies, disk and memory caches, and persistent data such as WebSQL, IndexedDB databases, and local storage.
- WKWindow
Features WKWindowFeatures
- WKWindowFeatures specifies optional attributes for the containing window when a new WKWebView is requested.
- WebArchive
Deprecated WebArchive
- WebArchive represents a main resource as well as all the subresources and subframes associated with the main resource. The main resource can be an entire web page, a portion of a web page, or some other kind of data such as an image. This class can be used for saving standalone web pages, representing portions of a web page on the pasteboard, or any other application where one class is needed to represent rich web content.
- WebBack
Forward List Deprecated WebBackForwardList
- WebBackForwardList holds an ordered list of WebHistoryItems that comprises the back and forward lists.
- WebCache
Model Deprecated WebPreferences
- Specifies a usage model for a WebView, which WebKit will use to determine its caching behavior.
- WebData
Source Deprecated WebDataSource
- A WebDataSource represents the data associated with a web page. A datasource has a WebDocumentRepresentation which holds an appropriate representation of the data. WebDataSources manage a hierarchy of WebFrames. WebDataSources are typically related to a view by their containing WebFrame.
- WebDownload
Deprecated WebDownload
- A WebDownload works just like an NSURLDownload, with one extra feature: if you do not implement the authentication-related delegate methods, it will automatically prompt for authentication using the standard WebKit authentication panel, as either a sheet or window. It provides no extra methods, but does have one additional delegate method.
- WebDrag
Destination Action Deprecated WebUIDelegate
- Actions that the destination of a drag can perform.
- WebDrag
Source Action Deprecated WebUIDelegate
- Actions that the source of a drag can perform.
- WebFrame
Deprecated WebFrame
- Every web page is represented by at least one WebFrame. A WebFrame has a WebFrameView and a WebDataSource.
- WebHistory
Deprecated WebHistory
- WebHistory is used to track pages that have been loaded by WebKit.
- WebHistory
Item Deprecated WebHistoryItem
- WebHistoryItems are created by WebKit to represent pages visited. The WebBackForwardList and WebHistory classes both use WebHistoryItems to represent pages visited. With the exception of the displayTitle, the properties of WebHistoryItems are set by WebKit. WebHistoryItems are normally never created directly.
- WebNavigation
Type Deprecated WebPolicyDelegate
- The type of action that triggered a possible navigation.
- WebPreferences
Deprecated WebPreferences
- Apple’s documentation
- WebResource
WebResource
- A WebResource represents a fully downloaded URL. It includes the data of the resource as well as the metadata associated with the resource.
- WebScript
Object Deprecated WebScriptObject
- WebScriptObjects are used to wrap script objects passed from script environments to Objective-C. WebScriptObjects cannot be created directly. In normal uses of WebKit, you gain access to the script environment using the “windowScriptObject” method on WebView.
- WebUndefined
Deprecated WebScriptObject
- Apple’s documentation
- WebView
Insert Action Deprecated WebEditingDelegate
- Apple’s documentation
Constants§
- DOM_
ADDITION Deprecated DOMMutationEvent
- Apple’s documentation
- DOM_
ALLOW_ KEYBOARD_ INPUT Deprecated DOMElement
- Apple’s documentation
- DOM_
ANY_ TYPE Deprecated DOMXPathResult
- Apple’s documentation
- DOM_
ANY_ UNORDERED_ NODE_ TYPE Deprecated DOMXPathResult
- Apple’s documentation
- DOM_
ATTRIBUTE_ NODE Deprecated DOMNode
- Apple’s documentation
- DOM_
AT_ TARGET Deprecated DOMEvent
- Apple’s documentation
- DOM_
BOOLEAN_ TYPE Deprecated DOMXPathResult
- Apple’s documentation
- DOM_
BOTH Deprecated DOMOverflowEvent
- Apple’s documentation
- DOM_
BUBBLING_ PHASE Deprecated DOMEvent
- Apple’s documentation
- DOM_
CAPTURING_ PHASE Deprecated DOMEvent
- Apple’s documentation
- DOM_
CDATA_ SECTION_ NODE Deprecated DOMNode
- Apple’s documentation
- DOM_
CHARSET_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
COMMENT_ NODE Deprecated DOMNode
- Apple’s documentation
- DOM_
CSS_ ATTR Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ CM Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ COUNTER Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ CUSTOM Deprecated DOMCSSValue
- Apple’s documentation
- DOM_
CSS_ DEG Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ DIMENSION Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ EMS Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ EXS Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ GRAD Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ HZ Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ IDENT Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ IN Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ INHERIT Deprecated DOMCSSValue
- Apple’s documentation
- DOM_
CSS_ KHZ Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ MM Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ MS Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ NUMBER Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ PC Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ PERCENTAGE Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ PRIMITIVE_ VALUE Deprecated DOMCSSValue
- Apple’s documentation
- DOM_
CSS_ PT Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ PX Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ RAD Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ RECT Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ RGBCOLOR Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ S Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ STRING Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ UNKNOWN Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ URI Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ VALUE_ LIST Deprecated DOMCSSValue
- Apple’s documentation
- DOM_
CSS_ VH Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ VMAX Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ VMIN Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
CSS_ VW Deprecated DOMCSSPrimitiveValue
- Apple’s documentation
- DOM_
DOCUMENT_ FRAGMENT_ NODE Deprecated DOMNode
- Apple’s documentation
- DOM_
DOCUMENT_ NODE Deprecated DOMNode
- Apple’s documentation
- DOM_
DOCUMENT_ POSITION_ CONTAINED_ BY Deprecated DOMNode
- Apple’s documentation
- DOM_
DOCUMENT_ POSITION_ CONTAINS Deprecated DOMNode
- Apple’s documentation
- DOM_
DOCUMENT_ POSITION_ DISCONNECTED Deprecated DOMNode
- Apple’s documentation
- DOM_
DOCUMENT_ POSITION_ FOLLOWING Deprecated DOMNode
- Apple’s documentation
- DOM_
DOCUMENT_ POSITION_ IMPLEMENTATION_ SPECIFIC Deprecated DOMNode
- Apple’s documentation
- DOM_
DOCUMENT_ POSITION_ PRECEDING Deprecated DOMNode
- Apple’s documentation
- DOM_
DOCUMENT_ TYPE_ NODE Deprecated DOMNode
- Apple’s documentation
- DOM_
DOM_ DELTA_ LINE Deprecated DOMWheelEvent
- Apple’s documentation
- DOM_
DOM_ DELTA_ PAGE Deprecated DOMWheelEvent
- Apple’s documentation
- DOM_
DOM_ DELTA_ PIXEL Deprecated DOMWheelEvent
- Apple’s documentation
- DOM_
ELEMENT_ NODE Deprecated DOMNode
- Apple’s documentation
- DOM_
END_ TO_ END Deprecated DOMRange
- Apple’s documentation
- DOM_
END_ TO_ START Deprecated DOMRange
- Apple’s documentation
- DOM_
ENTITY_ NODE Deprecated DOMNode
- Apple’s documentation
- DOM_
ENTITY_ REFERENCE_ NODE Deprecated DOMNode
- Apple’s documentation
- DOM_
FILTER_ ACCEPT Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
FILTER_ REJECT Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
FILTER_ SKIP Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
FIRST_ ORDERED_ NODE_ TYPE Deprecated DOMXPathResult
- Apple’s documentation
- DOM_
FONT_ FACE_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
HORIZONTAL Deprecated DOMOverflowEvent
- Apple’s documentation
- DOM_
IMPORT_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
KEYFRAMES_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
KEYFRAME_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
KEY_ LOCATION_ LEFT Deprecated DOMKeyboardEvent
- Apple’s documentation
- DOM_
KEY_ LOCATION_ NUMPAD Deprecated DOMKeyboardEvent
- Apple’s documentation
- DOM_
KEY_ LOCATION_ RIGHT Deprecated DOMKeyboardEvent
- Apple’s documentation
- DOM_
KEY_ LOCATION_ STANDARD Deprecated DOMKeyboardEvent
- Apple’s documentation
- DOM_
MEDIA_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
MODIFICATION Deprecated DOMMutationEvent
- Apple’s documentation
- DOM_
NAMESPACE_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
NODE_ AFTER Deprecated DOMRange
- Apple’s documentation
- DOM_
NODE_ BEFORE Deprecated DOMRange
- Apple’s documentation
- DOM_
NODE_ BEFORE_ AND_ AFTER Deprecated DOMRange
- Apple’s documentation
- DOM_
NODE_ INSIDE Deprecated DOMRange
- Apple’s documentation
- DOM_
NONE Deprecated DOMEvent
- Apple’s documentation
- DOM_
NOTATION_ NODE Deprecated DOMNode
- Apple’s documentation
- DOM_
NUMBER_ TYPE Deprecated DOMXPathResult
- Apple’s documentation
- DOM_
ORDERED_ NODE_ ITERATOR_ TYPE Deprecated DOMXPathResult
- Apple’s documentation
- DOM_
ORDERED_ NODE_ SNAPSHOT_ TYPE Deprecated DOMXPathResult
- Apple’s documentation
- DOM_
PAGE_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
PROCESSING_ INSTRUCTION_ NODE Deprecated DOMNode
- Apple’s documentation
- DOM_
REMOVAL Deprecated DOMMutationEvent
- Apple’s documentation
- DOM_
SHOW_ ALL Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
SHOW_ ATTRIBUTE Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
SHOW_ CDATA_ SECTION Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
SHOW_ COMMENT Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
SHOW_ DOCUMENT Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
SHOW_ DOCUMENT_ FRAGMENT Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
SHOW_ DOCUMENT_ TYPE Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
SHOW_ ELEMENT Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
SHOW_ ENTITY Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
SHOW_ ENTITY_ REFERENCE Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
SHOW_ NOTATION Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
SHOW_ PROCESSING_ INSTRUCTION Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
SHOW_ TEXT Deprecated DOMNodeFilter
- Apple’s documentation
- DOM_
START_ TO_ END Deprecated DOMRange
- Apple’s documentation
- DOM_
START_ TO_ START Deprecated DOMRange
- Apple’s documentation
- DOM_
STRING_ TYPE Deprecated DOMXPathResult
- Apple’s documentation
- DOM_
STYLE_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
SUPPORTS_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
TEXT_ NODE Deprecated DOMNode
- Apple’s documentation
- DOM_
UNKNOWN_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
UNORDERED_ NODE_ ITERATOR_ TYPE Deprecated DOMXPathResult
- Apple’s documentation
- DOM_
UNORDERED_ NODE_ SNAPSHOT_ TYPE Deprecated DOMXPathResult
- Apple’s documentation
- DOM_
VERTICAL Deprecated DOMOverflowEvent
- Apple’s documentation
- DOM_
WEBKIT_ KEYFRAMES_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
WEBKIT_ KEYFRAME_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- DOM_
WEBKIT_ REGION_ RULE Deprecated DOMCSSRule
- Apple’s documentation
- WebKit
Error Blocked Plug InVersion Deprecated WebKitErrors
- Apple’s documentation
- WebKit
Error Cannot Find Plug In Deprecated WebKitErrors
- Apple’s documentation
- WebKit
Error Cannot Load Plug In Deprecated WebKitErrors
- Apple’s documentation
- WebKit
Error Cannot ShowMIME Type Deprecated WebKitErrors
- Apple’s documentation
- WebKit
Error Cannot ShowURL Deprecated WebKitErrors
- Apple’s documentation
- WebKit
Error Frame Load Interrupted ByPolicy Change Deprecated WebKitErrors
- Apple’s documentation
- WebKit
Error Java Unavailable Deprecated WebKitErrors
- Apple’s documentation
- WebMenu
ItemPDF Actual Size Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
ItemPDF Auto Size Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
ItemPDF Continuous Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
ItemPDF Facing Pages Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
ItemPDF Next Page Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
ItemPDF Previous Page Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
ItemPDF Single Page Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
ItemPDF Zoom In Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
ItemPDF Zoom Out Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagCopy Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagCopy Image ToClipboard Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagCopy Link ToClipboard Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagCut Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagDownload Image ToDisk Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagDownload Link ToDisk Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagGo Back Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagGo Forward Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagIgnore Spelling Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagLearn Spelling Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagLook UpIn Dictionary Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagNo Guesses Found Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagOpen Frame InNew Window Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagOpen Image InNew Window Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagOpen Link InNew Window Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagOpen With Default Application Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagOther Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagPaste Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagReload Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagSearch InSpotlight Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagSearch Web Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagSpelling Guess Deprecated WebUIDelegate
- Apple’s documentation
- WebMenu
Item TagStop Deprecated WebUIDelegate
- Apple’s documentation
Statics§
- DOMEvent
Exception ⚠DOMEventException
- Apple’s documentation
- DOMException⚠
DOMException
- Apple’s documentation
- DOMRange
Exception ⚠DOMRangeException
- Apple’s documentation
- DOMX
Path ⚠Exception DOMXPathException
- Apple’s documentation
- WKError
Domain ⚠WKError
- Apple’s documentation
- WKWebsite
Data ⚠Type Cookies WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type Disk Cache WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type Fetch Cache WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type File System WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type Hash Salt WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type IndexedDB Databases WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type Local Storage WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type Media Keys WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type Memory Cache WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type Offline WebApplication Cache WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type Search Field Recent Searches WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type Service Worker Registrations WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type Session Storage WKWebsiteDataRecord
- Apple’s documentation
- WKWebsite
Data ⚠Type WebSQL Databases WKWebsiteDataRecord
- Apple’s documentation
- WebAction
Button ⚠Key WebPolicyDelegate
- Apple’s documentation
- WebAction
Element ⚠Key WebPolicyDelegate
- Apple’s documentation
- WebAction
Modifier ⚠Flags Key WebPolicyDelegate
- Apple’s documentation
- WebAction
Navigation ⚠Type Key WebPolicyDelegate
- Apple’s documentation
- WebAction
OriginalURL ⚠Key WebPolicyDelegate
- Apple’s documentation
- WebArchive
Pboard ⚠Type WebArchive
- The pasteboard type constant used when adding or accessing a WebArchive on the pasteboard.
- WebElementDOM
Node ⚠Key WebView
- Apple’s documentation
- WebElement
Frame ⚠Key WebView
- Apple’s documentation
- WebElement
Image ⚠AltString Key WebView
- Apple’s documentation
- WebElement
Image ⚠Key WebView
- Apple’s documentation
- WebElement
Image ⚠Rect Key WebView
- Apple’s documentation
- WebElement
ImageURL ⚠Key WebView
- Apple’s documentation
- WebElement
IsSelected ⚠Key WebView
- Apple’s documentation
- WebElement
Link ⚠Label Key WebView
- Apple’s documentation
- WebElement
Link ⚠Target Frame Key WebView
- Apple’s documentation
- WebElement
Link ⚠Title Key WebView
- Apple’s documentation
- WebElement
LinkURL ⚠Key WebView
- Apple’s documentation
- WebHistory
AllItems ⚠Removed Notification WebHistory
- Apple’s documentation
- WebHistory
Item ⚠Changed Notification WebHistoryItem
- Apple’s documentation
- WebHistory
Items ⚠Added Notification WebHistory
- Apple’s documentation
- WebHistory
Items ⚠Key WebHistory
- Apple’s documentation
- WebHistory
Items ⚠Removed Notification WebHistory
- Apple’s documentation
- WebHistory
Loaded ⚠Notification WebHistory
- Apple’s documentation
- WebHistory
Saved ⚠Notification WebHistory
- Apple’s documentation
- WebKit
Error ⚠Domain WebKitErrors
- Apple’s documentation
- WebKit
ErrorMIME ⚠Type Key WebKitErrors
- Apple’s documentation
- WebKit
Error ⚠Plug InName Key WebKitErrors
- Apple’s documentation
- WebKit
Error ⚠Plug InPageURL String Key WebKitErrors
- Apple’s documentation
- WebPlug
InAttributes ⚠Key WebPluginViewFactory
- and values of all attributes of the HTML element associated with the plug-in AND the names and values of all parameters to be passed to the plug-in (e.g. PARAM elements within an APPLET element). In the case of a conflict between names, the attributes of an element take precedence over any PARAMs. All of the keys and values in this NSDictionary must be NSStrings.
- WebPlug
InBaseURL ⚠Key WebPluginViewFactory
- the plug-in’s view.
- WebPlug
InContainer ⚠Key WebPluginViewFactory
- WebPlugInContainer informal protocol. This object is used for callbacks from the plug-in to the app. if this argument is nil, no callbacks will occur.
- WebPlug
InContaining ⚠Element Key WebPluginViewFactory
- the plug-in. May be nil.
- WebPlug
InShould ⚠Load Main Resource Key WebPluginViewFactory
- own main resource (the “src” URL, in most cases). If YES, the plug-in should load its own main resource. If NO, the plug-in should use the data provided by WebKit. See -webPlugInMainResourceReceivedData: in WebPluginPrivate.h. For compatibility with older versions of WebKit, the plug-in should assume that the value for WebPlugInShouldLoadMainResourceKey is NO if it is absent from the arguments dictionary.
- WebPreferences
Changed ⚠Notification WebPreferences
- Apple’s documentation
- WebView
DidBegin ⚠Editing Notification WebView
- Apple’s documentation
- WebView
DidChange ⚠Notification WebView
- Apple’s documentation
- WebView
DidChange ⚠Selection Notification WebView
- Apple’s documentation
- WebView
DidChange ⚠Typing Style Notification WebView
- Apple’s documentation
- WebView
DidEnd ⚠Editing Notification WebView
- Apple’s documentation
- WebView
Progress ⚠Estimate Changed Notification WebView
- Apple’s documentation
- WebView
Progress ⚠Finished Notification WebView
- Apple’s documentation
- WebView
Progress ⚠Started Notification WebView
- Apple’s documentation
Traits§
- DOMEvent
Listener Deprecated DOMEventListener
- Apple’s documentation
- DOMEvent
Target Deprecated DOMEventTarget
- Apple’s documentation
- DOMNode
Filter Deprecated DOMNodeFilter
- Apple’s documentation
- DOMX
PathNS Resolver Deprecated DOMXPathNSResolver
- Apple’s documentation
- NSAttributed
String WebKit Additions NSAttributedString
- Category on
NSAttributedString
. Extension of - NSObject
WebPlug In WebPlugin
- Category “WebPlugIn” on
NSObject
. WebPlugIn is an informal protocol that enables interaction between an application and web related plug-ins it may contain. - NSObject
WebPlug InContainer WebPluginContainer
- Category “WebPlugInContainer” on
NSObject
. This informal protocol enables a plug-in to request that its containing application perform certain operations. - NSObject
WebScripting WebScriptObject
- Category “WebScripting” on
NSObject
. - WKDownload
Delegate WKDownloadDelegate
- Apple’s documentation
- WKHTTP
Cookie Store Observer WKHTTPCookieStore
- Apple’s documentation
- WKNavigation
Delegate WKNavigationDelegate
- A class conforming to the WKNavigationDelegate protocol can provide methods for tracking progress for main frame navigations and for deciding policy for main frame and subframe navigations.
- WKScript
Message Handler WKScriptMessageHandler
- A class conforming to the WKScriptMessageHandler protocol provides a method for receiving messages from JavaScript running in a webpage.
- WKScript
Message Handler With Reply WKScriptMessageHandlerWithReply
- A class conforming to the WKScriptMessageHandlerWithReply protocol provides a method for receiving messages from JavaScript running in a webpage and replying to them asynchronously.
- WKUI
Delegate WKUIDelegate
- A class conforming to the WKUIDelegate protocol provides methods for presenting native UI on behalf of a webpage.
- WKURL
Scheme Handler WKURLSchemeHandler
- A class conforming to the WKURLSchemeHandler protocol provides methods for loading resources with URL schemes that WebKit doesn’t know how to handle itself.
- WKURL
Scheme Task WKURLSchemeTask
- Apple’s documentation
- WebDocument
Representation Deprecated WebDocument
- Protocol implemented by the document representation of a data source.
- WebDocument
Searching Deprecated WebDocument
- Optional protocol for searching document view of WebFrameView.
- WebDocument
Text Deprecated WebDocument
- Optional protocol for supporting text operations.
- WebDocument
View Deprecated WebDocument
- Protocol implemented by the document view of WebFrameView
- WebDownload
Delegate Deprecated WebDownload
- The WebDownloadDelegate delegate has one extra method used to choose the right window when automatically prompting with a sheet.
- WebEditing
Delegate Deprecated WebEditingDelegate
- Apple’s documentation
- WebFrame
Load Delegate Deprecated WebFrameLoadDelegate
- A WebView’s WebFrameLoadDelegate tracks the loading progress of its frames. When a data source of a frame starts to load, the data source is considered “provisional”. Once at least one byte is received, the data source is considered “committed”. This is done so the contents of the frame will not be lost if the new data source fails to successfully load.
- WebOpen
Panel Result Listener Deprecated WebUIDelegate
- This protocol is used to call back with the results of the file open panel requested by runOpenPanelForFileButtonWithResultListener:
- WebPlug
InView Factory Deprecated WebPluginViewFactory
- WebPlugInViewFactory are used to create the NSView for a plug-in. The principal class of the plug-in bundle must implement this protocol.
- WebPolicy
Decision Listener Deprecated WebPolicyDelegate
- This protocol is used to call back with the results of a policy decision. This provides the ability to make these decisions asyncrhonously, which means the decision can be made by prompting with a sheet, for example.
- WebPolicy
Delegate Deprecated WebPolicyDelegate
- While loading a URL, WebKit asks the WebPolicyDelegate for policies that determine the action of what to do with the URL or the data that the URL represents. Typically, the policy handler methods are called in this order:
- WebResource
Load Delegate Deprecated WebResourceLoadDelegate
- Implementors of this protocol will receive messages indicating that a resource is about to be loaded, data has been received for a resource, an error has been received for a resource, and completion of a resource load. Implementors are also given the opportunity to mutate requests before they are sent. The various progress methods of this protocol all receive an identifier as the parameter. This identifier can be used to track messages associated with a single resource. For example, a single resource may generate multiple resource:willSendRequest:redirectResponse:fromDataSource: messages as it’s URL is redirected.
- WebUI
Delegate Deprecated WebUIDelegate
- A class that implements WebUIDelegate provides window-related methods that may be used by Javascript, plugins and other aspects of web pages. These methods are used to open new windows and control aspects of existing windows.
Type Aliases§
- DOMTime
Stamp DOMObject
- Apple’s documentation