1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 07:13:24 +03:00
vimr/NvimView/Support/MinimalNvimViewDemo/AppDelegate.swift
2021-02-20 13:50:43 +01:00

21 lines
460 B
Swift

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