mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-26 07:13:24 +03:00
21 lines
460 B
Swift
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
|
|
}
|
|
}
|