Hi,
I have the following code which correctly displays a status bar icon in the menu bar.
[code]// DEFINE AND DISPLAY THE NSStatusItem IN THE OS X MENUBAR
dim bar as NSStatusBar = NSStatusBar.SystemStatusBar
item1 = bar.CreateStatusItem(NSStatusBar.NSVariableStatusItemLength, AddressOf StatusItemHandler)
This sets the target and action of the statusItem, so if the menu is nil, it will fire on click. If there is a menu, the action of the StatusItem is never called.
Does the same as the link above, but in a default way where you don’t have to remember to set nil on the menu to get clicks.
Jim, do you mean simply add your line of code above, (exactly as-is) to the very bottom of my original code?
Or do you mean replace my last line of code with yours?