I could not find any pointers on how to create a menubar icon on OSX using wx. I originally thought that the wxTaskBarIcon class would do, but it actually creates an icon on the Dock. On Windows, wxTaskBarIcon creates a Systray icon and associated menu, and I would think that on mac osx it would create a menubar icon, I guess not.
Share
You have to set
wxTaskBarIconTypetoSTATUSITEM, notDOCK. The Cocoa APIs for this areNSStatusBarandNSStatusItem; here’s the code in wxWidgets that calls to them.