Skip to content

Cannot call value of non-function type ... #18

@bananako

Description

@bananako

XCode 10.1
Cannot call value of non-function type NSStatusBar / NSApplication in

let statusItem = NSStatusBar.system().statusItem(withLength: NSVariableStatusItemLength)

@IBAction func quitClicked(_ sender: NSMenuItem) {
    NSApplication.shared().terminate(self)
}

I assume this is a simple syntax error due to Swift language update, but I haven't had a chance/got the skills to investigate further yet :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions