Replaces one of the view’s subviews with another view.
The view to be replaced by
newView. May not be
The view to replace
oldView. May not be
This method does nothing if
oldView is not a subview of the view.
newView may be
nil, and the behavior is undefined if either of these parameters is
This method causes
oldView to be 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 NSView.
Calling this method also removes any constraints associated with
oldView and its subtree.
Managing the View Hierarchy
The view that is the parent of the current view.
The array of views embedded in the current view.
The view’s window object, if it is installed in a window.
Adds a view to the view’s subviews so it’s displayed above its siblings.
Overridden by subclasses to perform additional actions when subviews are added to the view.
Unlinks the view from its superview and its window, removes it from the responder chain, and invalidates its cursor rectangles.
YES if the view is a subview of a given view or if it’s identical to that view; otherwise, it returns
The view’s closest opaque ancestor, which might be the view itself.
Informs the view that it’s being added to the view hierarchy of the specified window object (which may be
Overridden by subclasses to perform additional actions before subviews are removed from the view.
The menu item containing the view or any of its superviews in the view hierarchy.