How do I fix error "Cannot call value of non-function type 'NSScrollView?"
<p>Disclaimer: I am a complete no0b when it comes to swift. I learn by examples    so I am trying to write  a simple swift app that will ping, and display the results into a scrollview box. Here is my code.</p>

<p>I keep getting that error at my println code </p>

<pre><code>import Cocoa
import Foundation
import CoreFoundation


class ViewController: NSViewController {

@IBOutlet weak var window: NSWindow!
@IBOutlet weak var textWindow: NSScrollView!
@IBOutlet weak var timer: NSProgressIndicator!




override func viewDidLoad() {
    super.viewDidLoad()

    // Do any additional setup after loading the view.
}

override var representedObject: Any? {
    didSet {
    // Update the view, if already loaded.
    }
}


    @IBAction func Run(_ sender: Any) {



        func executeCommand(command: String, args: [String]) -&gt; String {

            let task = Process()

            task.launchPath = command
            task.arguments = args

            let pipe = Pipe()
            task.standardOutput = pipe
            task.launch()

            let data = pipe.fileHandleForReading.readDataToEndOfFile()
            let output: String = NSString(data: data, encoding:      String.Encoding.utf8.rawValue) as! String

            return output

        }
        let println = textWindow
        let commandOutput = executeCommand(command: "/bin/sh", args: ["-c",   "ping -c 5 8.8.8.8"])
        println("Command output: \(commandOutput)")





}




}
</code></pre>