# \[PR\] Check hidden ancestors in macOS implementation of ComponentPeer::isShowing()

**URL:** <https://forum.juce.com/t/pr-check-hidden-ancestors-in-macos-implementation-of-componentpeer-isshowing/69476>\
**Category:** Feature Requests\
**Created:** [September 11, 2026, 2:34pm UTC](https://forum.juce.com/t/pr-check-hidden-ancestors-in-macos-implementation-of-componentpeer-isshowing/69476 "2026-09-11T14:34:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qfactor](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/qfactor/32/14921_2.png) [@Qfactor](https://forum.juce.com/u/Qfactor)\
**Post date:** [September 11, 2026, 2:34pm UTC](https://forum.juce.com/t/pr-check-hidden-ancestors-in-macos-implementation-of-componentpeer-isshowing/69476/1 "2026-09-11T14:34:46Z")

</div>

ComponentPeer::isShowing() doesn’t include the “isHiddenOrHasHiddenAncestor” check on the macOS implementation, so the component may return as visible but be hidden because of a hidden ancestor.

A change is needed at [juce\_NSViewComponentPeer\_mac.mm:](https://github.com/juce-framework/JUCE/blob/72782788ce18c2d4d760b28e0921d6ffc6431102/modules/juce_gui_basics/native/juce_NSViewComponentPeer_mac.mm#L465-L473)

(not sure if the argument const bool checkHiddenAncestors = false is necessary, only if you need this to be fully backwards compatible)

```auto
bool isShowing (const bool checkHiddenAncestors = false) const override
{
    if (! [window isVisible] || isMinimised())
        return false;

    return ! checkHiddenAncestors || ! [view isHiddenOrHasHiddenAncestor];
}

```

instead of the current:

```auto
bool isShowing() const override
{
    return [window isVisible] && ! isMinimised();
}

```

For context of where this would be needed, see: [https://forum.juce.com/t/maschine-3-unconventional-path-to-re-open-a-vst3-plugin-ui/69474](https://forum.juce.com/t/maschine-3-unconventional-path-to-re-open-a-vst3-plugin-ui/69474)
