Comments on: Quit Cocoa App when Window Close using XCode Swift 3 https://nabtron.com/quit-cocoa-app-window-close/ Technology & Programming Guide Sun, 21 Apr 2019 04:09:40 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Nabtron https://nabtron.com/quit-cocoa-app-window-close/#comment-20200 Sun, 21 Apr 2019 04:09:40 +0000 https://nabtron.com/?p=10297#comment-20200 In reply to Mike Retondo.

Thanks for sharing the code!

]]>
By: Mike Retondo https://nabtron.com/quit-cocoa-app-window-close/#comment-20146 Sun, 02 Sep 2018 19:01:29 +0000 https://nabtron.com/?p=10297#comment-20146 It’s simpler to just add the following to the AppDelegatte:

class AppDelegate: NSObject, NSApplicationDelegate {
    func applicationShouldTerminateAfterLastWindowClosed (_ theApplication: NSApplication) -> Bool {
        return true
    }
}
]]>
By: Nabtron https://nabtron.com/quit-cocoa-app-window-close/#comment-20044 Mon, 08 Jan 2018 23:16:54 +0000 https://nabtron.com/?p=10297#comment-20044 In reply to [ML].

Please tell me the issue that you’re facing in detail.

]]>
By: [ML] https://nabtron.com/quit-cocoa-app-window-close/#comment-20015 Fri, 10 Nov 2017 09:40:58 +0000 https://nabtron.com/?p=10297#comment-20015 Hi there,
thanks for this post.

I tested it on Xcode9.1 and doesn’t works properly.

Any suggestion?

Thanks in advance

]]>