To configure a custom class to respond to a view detaching from, or reattaching to, a stack view (an instance of the
NSStack class), configure the custom class to adopt the
NSStack protocol. Then, in a stack view instance, set the
delegate property to refer to an instance of your custom class.
- macOS 10.9+
For an explanation of detachment and reattachment of a stack view’s views, see the Overview in