Contents

webView(_:validate:defaultValidation:)

Returns a Boolean value that indicates whether the specified user interface item is valid.

Declaration

optional func webView(_ webView: WebView!, validate item: (any NSValidatedUserInterfaceItem)!, defaultValidation: Bool) -> Bool

Parameters

  • webView:

    The web view that sent the message.

  • item:

    The user interface item being validated.

  • defaultValidation:

    True if the web view believes the user interface item is valid; otherwise, False.

Return Value

true if the specified user interface item is valid; otherwise, false.

Discussion

See NSUserInterfaceValidations and NSValidatedUserInterfaceItem for more information about user interface validation. If you do not implement this method, the value of defaultValidation is used.

See Also

Controlling Other Behaviors