net9.0-macos14.2
namespace AppKit
{
    [Protocol(Name = "NSWindowDelegate", WrapperType = typeof(NSWindowDelegateWrapper))]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidResize", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidResize:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidExpose", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidExpose:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillMove", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowWillMove:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidMove", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidMove:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidBecomeKey", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidBecomeKey:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidResignKey", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidResignKey:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidBecomeMain", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidBecomeMain:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidResignMain", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidResignMain:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillClose", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowWillClose:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillMiniaturize", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowWillMiniaturize:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidMiniaturize", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidMiniaturize:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidDeminiaturize", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidDeminiaturize:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidUpdate", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidUpdate:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidChangeScreen", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidChangeScreen:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidChangeScreenProfile", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidChangeScreenProfile:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillBeginSheet", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowWillBeginSheet:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidEndSheet", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidEndSheet:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillStartLiveResize", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowWillStartLiveResize:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidEndLiveResize", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidEndLiveResize:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillEnterFullScreen", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowWillEnterFullScreen:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidEnterFullScreen", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidEnterFullScreen:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillExitFullScreen", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowWillExitFullScreen:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidExitFullScreen", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidExitFullScreen:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidFailToEnterFullScreen", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSWindow) }, Selector = "windowDidFailToEnterFullScreen:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidFailToExitFullScreen", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSWindow) }, Selector = "windowDidFailToExitFullScreen:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "StartCustomAnimationToEnterFullScreen", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSWindow), typeof(double) }, Selector = "window:startCustomAnimationToEnterFullScreenWithDuration:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "StartCustomAnimationToExitFullScreen", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSWindow), typeof(double) }, Selector = "window:startCustomAnimationToExitFullScreenWithDuration:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillEncodeRestorableState", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSWindow), typeof(NSCoder) }, Selector = "window:willEncodeRestorableState:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidDecodeRestorableState", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSWindow), typeof(NSCoder) }, Selector = "window:didDecodeRestorableState:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillEnterVersionBrowser", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowWillEnterVersionBrowser:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidEnterVersionBrowser", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidEnterVersionBrowser:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillExitVersionBrowser", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowWillExitVersionBrowser:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidExitVersionBrowser", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidExitVersionBrowser:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidChangeBackingProperties", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSNotification) }, Selector = "windowDidChangeBackingProperties:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WindowShouldClose", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSObject) }, ReturnType = typeof(bool), Selector = "windowShouldClose:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillReturnFieldEditor", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSWindow), typeof(NSObject) }, ReturnType = typeof(NSObject), Selector = "windowWillReturnFieldEditor:toObject:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillResize", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSWindow), typeof(CGSize) }, ReturnType = typeof(CGSize), Selector = "windowWillResize:toSize:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillUseStandardFrame", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSWindow), typeof(CGRect) }, ReturnType = typeof(CGRect), Selector = "windowWillUseStandardFrame:defaultFrame:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ShouldZoom", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSWindow), typeof(CGRect) }, ReturnType = typeof(bool), Selector = "windowShouldZoom:toFrame:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillReturnUndoManager", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSWindow) }, ReturnType = typeof(NSUndoManager), Selector = "windowWillReturnUndoManager:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillPositionSheet", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSWindow), typeof(NSWindow), typeof(CGRect) }, ReturnType = typeof(CGRect), Selector = "window:willPositionSheet:usingRect:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ShouldPopUpDocumentPathMenu", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSWindow), typeof(NSMenu) }, ReturnType = typeof(bool), Selector = "window:shouldPopUpDocumentPathMenu:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ShouldDragDocumentWithEvent", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(NSWindow), typeof(NSEvent), typeof(CGPoint), typeof(NSPasteboard) }, ReturnType = typeof(bool), Selector = "window:shouldDragDocumentWithEvent:from:withPasteboard:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillUseFullScreenContentSize", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSWindow), typeof(CGSize) }, ReturnType = typeof(CGSize), Selector = "window:willUseFullScreenContentSize:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillUseFullScreenPresentationOptions", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSWindow), typeof(NSApplicationPresentationOptions) }, ReturnType = typeof(NSApplicationPresentationOptions), Selector = "window:willUseFullScreenPresentationOptions:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "CustomWindowsToEnterFullScreen", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSWindow) }, ReturnType = typeof(NSWindow[]), Selector = "customWindowsToEnterFullScreenForWindow:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "CustomWindowsToExitFullScreen", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSWindow) }, ReturnType = typeof(NSWindow[]), Selector = "customWindowsToExitFullScreenForWindow:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "GetPreviewRepresentableActivityItems", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSWindow) }, ReturnType = typeof(INSPreviewRepresentableActivityItem[]), Selector = "previewRepresentableActivityItemsForWindow:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillResizeForVersionBrowser", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSWindow), typeof(CGSize), typeof(CGSize) }, ReturnType = typeof(CGSize), Selector = "window:willResizeForVersionBrowserWithMaxPreferredSize:maxAllowedSize:")]
    [SupportedOSPlatform("macos")]
    [UnsupportedOSPlatform("maccatalyst")]
    public interface INSWindowDelegate : INativeObject, IDisposable
}
nuget.org
0.0 %
Reference this API
0.0 %
Derive from this class or interface
.NET 6.07.08.09.0
Information specific to net9.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 net9.0-macos14.2
Assembly

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

Referencing

The API is automatically referenced.

Platform Restrictions

This API is only supported on the following platforms:

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

12/26/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙