net10.0-macos14.2
namespace AppKit
{
    [Protocol(Name = "NSOpenSavePanelDelegate", WrapperType = typeof(NSOpenSavePanelDelegateWrapper))]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidChangeToDirectory", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSSavePanel), typeof(NSUrl) }, Selector = "panel:didChangeToDirectoryURL:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillExpand", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSSavePanel), typeof(bool) }, Selector = "panel:willExpand:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "SelectionDidChange", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSSavePanel) }, Selector = "panelSelectionDidChange:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DirectoryDidChange", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSSavePanel), typeof(string) }, Selector = "panel:directoryDidChange:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidSelectType", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSSavePanel), typeof(UTType) }, Selector = "panel:didSelectType:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ShouldEnableUrl", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSSavePanel), typeof(NSUrl) }, ReturnType = typeof(bool), Selector = "panel:shouldEnableURL:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ValidateUrl", ParameterByRef = new[] { false, false, true }, ParameterType = new[] { typeof(NSSavePanel), typeof(NSUrl), typeof(NSError) }, ReturnType = typeof(bool), Selector = "panel:validateURL:error:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "UserEnteredFilename", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSSavePanel), typeof(string), typeof(bool) }, ReturnType = typeof(string), Selector = "panel:userEnteredFilename:confirmed:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "IsValidFilename", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSSavePanel), typeof(string) }, ReturnType = typeof(bool), Selector = "panel:isValidFilename:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "CompareFilenames", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(NSSavePanel), typeof(string), typeof(string), typeof(bool) }, ReturnType = typeof(NSComparisonResult), Selector = "panel:compareFilename:with:caseSensitive:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ShouldShowFilename", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSSavePanel), typeof(string) }, ReturnType = typeof(bool), Selector = "panel:shouldShowFilename:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "GetDisplayName", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSSavePanel), typeof(UTType) }, ReturnType = typeof(string), Selector = "panel:displayNameForType:")]
    [SupportedOSPlatform("macos")]
    [UnsupportedOSPlatform("maccatalyst")]
    public interface INSOpenSavePanelDelegate : INativeObject, IDisposable
    {
        [BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
        [Export("panel:validateURL:error:")]
        [OptionalMember]
        virtual bool ValidateUrl(NSSavePanel! panel, NSUrl! url, out NSError? outError);
    }
}
.NET
10.0
Information specific to net10.0
Platforms This API is only available when you target a specific platform:
macOS
10.1410.1510.1611.011.111.211.312.012.112.313.013.113.314.014.2
Information specific to net10.0-macos14.2
Assembly

Microsoft.macOS , Version=15.5.0.0, PublicKeyToken=84e04ff9cfb79065

Referencing

The API is automatically referenced.

Preview The API is contained in a preview framework.
Platform Restrictions

This API is only supported on the following platforms:

  • Mac Catalyst
  • macOS
  • Built-in API
  • Package-provided API