Contents

panel(_:validate:)

Asks the delegate to validate the URL for a file that the user selected.

Declaration

@MainActor optional func panel(_ sender: Any, validate url: URL) throws

Parameters

  • sender:

    The panel that requests URL validation.

  • url:

    The URL for you to validate.

Discussion

Save panels call this method when the user clicks the Save button. Open panels call it when the user clicks the Open button. An Open panel calls this method once for each selected filename or directory.

See Also

Validating the Panel Content