Conversion to swift 4

This commit is contained in:
2017-06-28 14:38:12 +02:00
parent 965db2c81a
commit 7fc78049d2
21 changed files with 91 additions and 60 deletions
+3 -3
View File
@@ -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 {