Is there a correct way to determine if the NSView is NSView displayed in the current view hierarchy or not, given cases such as:
- Off-screen view (optional)
- View is not above view hierarchy
-isHidden and -isHiddenOrHasHiddenAncestor , unfortunately, are not set when, for example, the view disappears because the tab view switches to another tab.
The reason for this is that I have a child child window, and I would also like to hide it when the view it is attached to is not drawn.
source share