Contents

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 : NSObjectProtocol

Topics

Creating and Closing Windows

Moving and Resizing Windows

Making Windows Key and Main

Ordering Windows

Working with the Responder Chain

Handling Mouse Events

Opening Panels

Displaying Status Messages

Managing Toolbars and the Status Bar

Controlling Drag Behavior

Controlling Other Behaviors

Printing

Constants

See Also

Setting Up a Web View (Legacy)