Protocol

WebEditingDelegate

No overview available.

Declaration

@protocol WebEditingDelegate

Topics

Instance Methods

- undoManagerForWebView:

Returns the undo manager to be used by a web view.

- webView:doCommandBySelector:

Returns whether the receiver performs a command instead of the web view.

- webView:shouldApplyStyle:toElementsInDOMRange:

Returns whether the user should be allowed to apply a style to a range of content.

- webView:shouldBeginEditingInDOMRange:

Returns whether the user is allowed to edit a range of content in a web view.

- webView:shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:

Returns whether the user should be allowed to change the selected range.

- webView:shouldChangeTypingStyle:toStyle:

Returns whether the user should be allowed to change the typing style in a web view.

- webView:shouldDeleteDOMRange:

Returns whether the user should be allowed to delete a range of content.

- webView:shouldEndEditingInDOMRange:

Returns whether the user should be allowed to end editing.

- webView:shouldInsertNode:replacingDOMRange:givenAction:

Returns whether the user should be allowed to insert a node in place of a range of content.

- webView:shouldInsertText:replacingDOMRange:givenAction:

Returns whether a user should be allowed to insert text in place of a range of content.

- webViewDidBeginEditing:

Sent by the default notification center when the user begins editing the web view.

- webViewDidChange:

Sent by the default notification center when the user changes content in the web view.

- webViewDidChangeSelection:

Sent by the default notification center when the user changes the selection in the web view.

- webViewDidChangeTypingStyle:

Sent by the default notification center when the user changes the typing style in the web view.

- webViewDidEndEditing:

Sent by the default notification center when the user stops editing the web view.

Relationships

Inherits From

See Also

Setting Up a Web View (Legacy)

WebView

WebView is the core view class in the WebKit framework that manages interactions between the WebFrame and WebFrameView classes. To embed web content in your application, you just create a WebView object, attach it to a window, and send a loadRequest: message to its main frame.

Deprecated
WebPreferences

WebPreferences encapsulates the preferences you can change per WebView object. These preferences include font, text encoding, and image settings. Normally a WebView object uses the standard preferences returned by the standardPreferences class method. However, you can modify the preferences for individual WebView instances too. Use the preferencesIdentifier WebView method to change a WebView object’s preferences, or to share preferences between WebView objects. Use the autosaves method to specify if the preferences object should be automatically saved to the user defaults database.

Deprecated
WebUIDelegate

Web view user interface delegates implement this protocol to control the opening of new windows, augment the behavior of default menu items displayed when the user clicks elements, and perform other user interface–related tasks. These methods can be invoked as a result of handling JavaScript or other plug-in content. Delegates that display more than one web view per window, for example, need to implement some of these methods to handle that case. The default implementation assumes one window per web view, so non-conventional user interfaces might implement a user interface delegate.

Deprecated