Informs the view that it has been added to a new view hierarchy.
The default implementation does nothing; subclasses can override this method to perform whatever actions are necessary.
If the view’s
window property is
nil, that result signifies that the view was removed from its window and does not currently reside in any window.
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.