1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 16:56:40 +03:00
vimr/NvimView/MinimalNvimViewDemo/AppDelegate.swift
2019-03-28 10:23:08 +01:00

27 lines
502 B
Swift

/**
* Tae Won Ha - http://taewon.de - @hataewon
* See LICENSE
*/
import Cocoa
import RxSwift
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_ aNotification: Notification) {
}
func applicationShouldTerminate(
_: NSApplication
) -> NSApplication.TerminateReply {
NSDocumentController.shared
.documents
.compactMap { $0 as? Document }
.forEach { $0.quitWithoutSaving() }
return .terminateNow
}
}