How to display the main menu when Dock icon is hidden? - swift

I developed a basic menubar app. How do you hide the dock icon and still have the Main Menu display when menubar app (status-item) is active?
Note: The Main Menu only displays If the dock icon is not hidden.
e.g. Main Menu (File, Edit, View etc at the left of the menu bar)

Related

How can I show VS Code's disappeared extensions and files sidebar?

When I was working I don't know where I clicked, but then the Extensions and Files sidebar disappeared.
Go to View -> Appeareance and then reenable the Activity Bar by setting a checkmark there.
View > Appearance > Show Activity Bar.
Another way is by clicking on Customize Layout right next to the Minimize Button, and then click on Activity Bar to make it visible

How to remove hamburger menu button when the menu bar is disabled in Visual Studio Code

Before the update, I liked to disable show menu bar.
The menu disappeared and you just have to press Alt key to show it again.
But now Alt key doesn't work because there is a new hamburger menu button on the Activity Bar.
Is it possible to remove the hamburger menu icon?
Open File
Choose Preferences
Choose Settings
Search for window.menuBarVisibility
Set this according to your preference. toggle removes the new hamburger icon and only shows when you hit Alt.

how to keep the dockMenu open when clicking items in cocoa app

i have items in my dock menu that needs the dock menu to stay open
when the items are clicked
im refering to when u right click on an app and you get the dock menu
automaticly, it closes it
anyway to override this?

close sidr menu when user clicks link

I'm developing a site that uses the sidr menu. This site also uses modal windows to display content. when a user presses a menu item and it opens a modal window, the window opens below the sidr menu.
should I:
A. stack the modal window above the slidr menu so the entire contents can be seen? This might work as the toggle menu button is covered.
B. Force the menu to close so the modal window is not closed.
I thought changing the z-index of the modal window would work but I can't get it to load above the menu. the z-index of the menu is 999999. I tried 1,000,000 for the modal window, but it still loads below the menu.
what else can I try?

Window icon for Gtk.MessageDialog?

I was wondering if it was possible to have a window icon placed in the dock bar for a generic MessageDialog.
For any other window, I can easily set the icon from a file; and every time I open or I hide a window, then the relative windows icon is showed in the dock bar.
I tried by different ways but i'm not able.
Is it possible?