Skip to content

innocuo/popover-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

popover-app

This is an app that does nothing except adding an icon to MacOS's menu bar. When you click on it, it shows a popover. If you right click on the icon, it shows a menu. It's intended as sample code for whoever needs it.

I originally used this code for Inojournal, but I'm in the process of removing it from that app, as most people say this sort of click behavior is not intuitive, and therefore Apple doesn't recommend it. In theory, left or right clicking on a menu bar icon should show the same thing.

Even so, some developers still want such a behavior in their apps, but achieving it needs some work arounds. I think I solved them with this code (stuff like hilighting the icon when the menu appears, close the popup when you click on another icon, hide the popup when you press ESC, etc.)

That's it.

About

Simple MacOS menu bar application showing a popover with left click, and a menu with right click Edit Add topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages