I have create a menubar 'button' which runs a function when it is clicked. Below is my code for the menubar button.
let statusItem = NSStatusBar.systemStatusBar().statusItemWithLength(-1)
func applicationDidFinishLaunching(aNotification: NSNotification) {
if let button = statusItem.button {
button.title = "This is in the menu bar."
button.action = Selector("myFunction")
}
}
The problem is, this is going to be made into an image, not text, so I need it not to be highlighted blue when the user clicks it, which is what happens at the moment.
Is there anything I can do to stop it being highlighted when the user clicks it?
Thanks!