Document menu == Lightbulb icon on Tahoe?

My app has a menu called "Document". On Tahoe, this appears as a lightbulb icon.

Is this deliberate? Is it possible to stop this? Or do I just have to use a different name if I want people to read words?

Answered by Frameworks Engineer in 873601022

Hi benwiggy,

Does this “Document” menu item have an action (selector) associated with it? If so, do you mind sharing what that selector is? Typically, a menu item with a submenu doesn’t have its own action.

Thanks for the post. As a developer you can change all the icons on your menus.

I believe that staring with macOS older version there were a few new default menu icons for certain system-provided menus when apps run on macOS 13 or later. Looking at that documentation to see where it started. https://developer.apple.com/design/human-interface-guidelines/icons#Standard-icons

If your app’s “Document” menu is showing a lightbulb icon on Ventura (and later) while running on macOS 13+, this can be changed to whatever icon you want in your assets folder by using NSMenu and NSMenuItem?

https://developer.apple.com/design/human-interface-guidelines/the-menu-bar

Do you have a screenshot and a snippet of your code?

You can redesign of the menu bar to streamline appearance and improve consistency across apps, traditional menu titles like “Document,” “Edit,” or “Help” may be replaced with system-styled icons when the app runs on newer macOS versions. The most reliable approach is to use a slightly different menu name that doesn’t trigger the icon substitution, but to be honest I never tried as I leave it as by default, however It is possible to create a completely custom menu bar using NSMenu and NSMenuItem without relying on default system menus.

Albert Pascual
  Worldwide Developer Relations.

In case it's not clear, I don't consider this an improvement. I want to have words, not icons, in my menus.

Thanks for the reply.

Can I ask you what the action (selector) is for this main menu item?

Albert Pascual
  Worldwide Developer Relations.

Accepted Answer

Hi benwiggy,

Does this “Document” menu item have an action (selector) associated with it? If so, do you mind sharing what that selector is? Typically, a menu item with a submenu doesn’t have its own action.

FB number is FB21732645

I'll add information about the action. Thanks.

Document menu == Lightbulb icon on Tahoe?
 
 
Q