I'm developing a Cocoa based application for Mac in Swift. I'm looking for how to have the file path of a file I drag and drop to the status bar icon of the app.
I created my status bar icon in AppDelegate with
func applicationDidFinishLaunching(aNotification: NSNotification) {
let icon = NSImage(named: "statusIcon")
icon?.setTemplate(true)
statusItem.image = icon
statusItem.menu = statusMenu
...
}