//
//  ViewController.swift
//  clipboardcopies
//
//  Created by Owen Imholte on 11/9/21.
//

import Cocoa

class ViewController: NSViewController {

    static func newInsatnce() -> ViewController {
        let storyboard = NSStoryboard(name: NSStoryboard.Name("Main"), bundle: nil)
        let identifier = NSStoryboard.SceneIdentifier("ViewController")
          
        guard let viewcontroller = storyboard.instantiateController(withIdentifier: identifier) as? ViewController else {
            fatalError("Unable to instantiate ViewController in Main.storyboard")
        }
        return viewcontroller
    }
    
    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 quitThisApp(sender: Any?) {
        print("quit!")
        NSApp.terminate(self)
    }
}

