mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-18 11:11:34 +03:00
27 lines
502 B
Swift
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
|
|
}
|
|
}
|