Conversion to swift 4
This commit is contained in:
@@ -21,9 +21,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
// Insert code here to tear down your application
|
||||
}
|
||||
|
||||
func applicationShouldTerminate(_ sender: NSApplication) -> NSApplicationTerminateReply {
|
||||
guard isConverting else { return NSApplicationTerminateReply.terminateNow }
|
||||
return NSApplicationTerminateReply.terminateCancel
|
||||
func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {
|
||||
guard isConverting else { return NSApplication.TerminateReply.terminateNow }
|
||||
return NSApplication.TerminateReply.terminateCancel
|
||||
}
|
||||
|
||||
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
||||
|
||||
Reference in New Issue
Block a user