Unlinks the view from its superview and its window, removes it from the responder chain, and invalidates its cursor rectangles.
- macOS 10.0+
The view is also released; if you plan to reuse it, be sure to retain it before sending this message and to release it as appropriate when adding it as a subview of another
Calling this method removes any constraints that refer to the view you are removing, or that refer to any view in the subtree of the view you are removing.
Never invoke this method during display.