Mac application without a window

I have little knowledge of developing a Mac application. When the application starts, I do not want to show the window at all. I put the icon in the status bar, and when I right-click it, it will display the options, and one of them is to see the window. Can someone tell me how to hide the window when the application starts?

+8
statusbar macos
source share
1 answer

In the xib application, select the window object and you will see β€œVisible at startup” in the Attributes Inspector.

+11
source share

All Articles