Instance Property


The window’s delegate.


weak var delegate: NSWindowDelegate? { get set }


The value of this property is nil if the window doesn’t have a delegate.

A window object’s delegate is inserted in the responder chain after the window itself and is informed of various actions by the window through delegation messages.

See Also

Managing the Window's Behavior

protocol NSWindowDelegate

A set of optional methods that a delegate of NSWindow can implement to respond to events, such as window resizing, moving, exposing, and minimizing.