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.
Declaration
protocol WebUIDelegate : NSObjectProtocolTopics
Creating and Closing Windows
webView(_:createWebViewModalDialogWith:)webViewRunModal(_:)webView(_:createWebViewWith:)webViewClose(_:)
Moving and Resizing Windows
Making Windows Key and Main
Ordering Windows
Working with the Responder Chain
Handling Mouse Events
webView(_:mouseDidMoveOverElement:modifierFlags:)webView(_:contextMenuItemsForElement:defaultMenuItems:)
Opening Panels
webView(_:runJavaScriptAlertPanelWithMessage:initiatedBy:)webView(_:runJavaScriptConfirmPanelWithMessage:initiatedBy:)webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedBy:)webView(_:runOpenPanelForFileButtonWith:)webView(_:runOpenPanelForFileButtonWith:allowMultipleFiles:)webView(_:runBeforeUnloadConfirmPanelWithMessage:initiatedBy:)
Displaying Status Messages
Managing Toolbars and the Status Bar
webViewAreToolbarsVisible(_:)webView(_:setToolbarsVisible:)webViewIsStatusBarVisible(_:)webView(_:setStatusBarVisible:)
Controlling Drag Behavior
webView(_:dragDestinationActionMaskFor:)webView(_:dragSourceActionMaskFor:)webView(_:willPerform:for:)webView(_:willPerform:from:with:)
Controlling Other Behaviors
Printing
webView(_:print:)webViewHeaderHeight(_:)webViewFooterHeight(_:)webView(_:drawHeaderIn:)webView(_:drawFooterIn:)