# MacOS Menu Bar Section Headers

**URL:** <https://forum.juce.com/t/macos-menu-bar-section-headers/60547>\
**Category:** General JUCE discussion\
**Created:** [March 21, 2024, 7:17am UTC](https://forum.juce.com/t/macos-menu-bar-section-headers/60547 "2024-03-21T07:17:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rincewind](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rincewind/32/10645_2.png) [@Rincewind](https://forum.juce.com/u/Rincewind)\
**Post date:** [March 21, 2024, 7:17am UTC](https://forum.juce.com/t/macos-menu-bar-section-headers/60547/1 "2024-03-21T07:17:24Z")

</div>

MacOS 14 now supports proper section headers in menus. It just looks a tiny bit nicer, than adding a normal one disabled (especially when items below that “section header” are also disabled).

Would be great if that could be incorporated into JUCE:

```auto
        else if (i.isSectionHeader)
        {
            if (@available (macos 14.0, *))
            {
                [menuToAddTo addItem: [NSMenuItem sectionHeaderWithTitle: text]];
            }
            else
            {
                NSMenuItem* item = [menuToAddTo addItemWithTitle: text
                                                          action: nil
                                                   keyEquivalent: nsEmptyString()];
                [item setEnabled: false];
            }
        }

```
