Instance Property

delegate

The window’s delegate.

Declaration

@property(weak) id<NSWindowDelegate> delegate;

Discussion

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

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.