"Application is an agent" does not work in Swift
1 answer
Customize your NSStatusBar with title, image, alternate image, etc. and you will see it in the system status bar.
let statusItem = NSStatusBar.systemStatusBar().statusItemWithLength(NSVariableStatusItemLength)
statusItem.button?.title = "LG"
statusItem.button?.image = NSImage(named: "LGIcon")
statusItem.button?.alternateImage = NSImage(named: "LGIcon")
0
source to share