Orders the view's immediate subviews using the specified comparator function.
A pointer to the comparator function. This function must take as arguments two subviews to be ordered and contextual data (supplied in
context which may be arbitrary data used to help in the comparison. The comparator function should return
NSOrderedAscending if the first subview should be ordered lower,
NSOrderedDescending if the second subview should be ordered lower, and
NSOrderedSame if their ordering isn’t important.
Arbitrary data that might help the comparator function
compare in its decisions.
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.