Contents

willRemoveSubview(_:)

Overridden by subclasses to perform additional actions before subviews are removed from the view.

Declaration

func willRemoveSubview(_ subview: NSView)

Parameters

  • subview:

    The subview that will be removed.

Discussion

This method is invoked when subview receives a removeFromSuperview() message or subview is removed from the view due to it being added to another view with addSubview(_:).

See Also

Responding to View-Related Notifications