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.

Declaration

@protocol NSStackViewDelegate

Overview

For an explanation of detachment and reattachment of a stack view’s views, see the Overview in NSStackView.

Topics

Responding to View Detachment and Reattachment

- stackView:didReattachViews:

Called when the stack view has automatically reattached one or more previously-detached views.

- stackView:willDetachViews:

Called when the stack view is about to automatically detach one or more of its views.

Relationships

Inherits From

See Also

Responding to Stack-Related Changes

delegate

The delegate object for the stack view.