Inserts a view among the view’s subviews so it’s displayed immediately above or below another view.
- macOS 10.0+
The view object to add to the view as a subview.
enumconstant specifying the position of the
other. Valid values are
The other view
ais to be positioned relative to. If
nil(or isn’t a subview of the view),
ais added above or below all of its new siblings.
This method also sets the view as the next responder of
The view retains
a. If you use
remove to remove
a from the view hierarchy,
a is released. If you want to keep using
a after removing it from the view hierarchy (if, for example, you are swapping through a number of views), you must retain it before invoking