I cannot find the right way to close the main window after I clicked the "proceed" button installed on this window. I have try to connect this button to the "proceedclose" option of the inspector. I have also try to insert the following line inside my code :
import Cocoa
class ViewController: NSViewController {
...
@IBAction func Envoi(sender: NSButton) {
self.view.window!.close()
}
}
None of them works, nothing happens and no error is reported. Could anyone help me to sort it out?