Instance Property


The delegate object for the stack view.


weak var delegate: NSStackViewDelegate? { get set }


The system calls a delegate method when resizing has caused a view to be detached from or reattached to the stack view. For more information, see NSStackViewDelegate.

See Also

Responding to Stack-Related Changes

protocol NSStackViewDelegate

To configure a custom class to respond to a view detaching from, or reattaching to, a stack view (an instance of the NSStackView class), configure the custom class to adopt the NSStackViewDelegate protocol. Then, in a stack view instance, set the delegate property to refer to an instance of your custom class.