The menu can't be shown in background process in MacOS 26(beta)

After I upgraded to MacOS 26(beta), my program caused the system to pop up a window as shown in the following picture. My application is a process with only a tray icon. I found that my tray icon is not displayed in the current version, even though I clicked the "Always Allow" button.

Here are my questions: 1.Will this related feature remain consistent in the official release? 2.How can I create a cmd process that only displays a system tray icon (no main window) like Alfred?

Lemme start by clarifying terminology. You wrote:

My application is a process with only a tray icon.

What do you mean by “tray icon”? Are you talking about a menu on the right side of the menu bar?

If so, those are called menu bar extras or status bar items [1].

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] After the AppKit NSStatusBar class.

Yes,status bar items

The menu can't be shown in background process in MacOS 26(beta)
 
 
Q