Contents

webView(_:willPerform:from:with:)

Tells the receiver that the sending web view will perform the specified drag-source action.

Declaration

optional func webView(_ webView: WebView!, willPerform action: WebDragSourceAction, from point: NSPoint, with pasteboard: NSPasteboard!)

Parameters

  • webView:

    The web view that sent the message.

  • action:

    The drag-source action to perform. See Webdragsourceaction for a list of actions.

  • point:

    The point at which the drag began, specified in the coordinates of the web view.

  • pasteboard:

    The drag pasteboard.

Discussion

This method is invoked after the last invocation of the webView(_:dragSourceActionMaskFor:) method, when the dragged content is dropped and the sender is about to perform the drag-source action. The delegate has the opportunity to modify the contents of the object on the pasteboard before completing the drag-source action. No action is taken if you do not implement this method.

See Also

Controlling Drag Behavior