Contents

webView(_:setResizable:)

Sets whether a web view’s window can be resized.

Declaration

optional func webView(_ sender: WebView!, setResizable resizable: Bool)

Parameters

  • sender:

    The web view that sent the message.

  • resizable:

    If True, the web view’s window can be resized; if False, the window is not resizable.

Discussion

By default, this method sets the window containing a web view to be resizable. If you display multiple web views in a window then your user interface delegate should implement this method to handle this special case. If you do not implement this method, the NSWindow method showsResizeIndicator is sent to the window that contains sender.

See Also

Moving and Resizing Windows