Is there a proper way to determine if a NSView
is actually drawn in the current view hierarchy or not, considering cases like:
- The view is completely offscreen (not mandatory)
- The view is not on top of the view hierarchy
The -isHidden
and -isHiddenOrHasHiddenAncestor
are unfortunately not set when e.g. a view disappears because a tab view switches to another tab.
The reason for this is that I have an attached child window and I would like to be able to hide it as well when the view that it is attached to is not drawn.