1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 11:35:35 +03:00
vimr/VimR/Application.swift

31 lines
647 B
Swift
Raw Normal View History

/**
* Tae Won Ha - http://taewon.de - @hataewon
* See LICENSE
*/
import Cocoa
class Application: NSApplication {
override init() {
// Do very early initializtion here
// disable default press and hold behavior (copied from MacVim)
CFPreferencesSetAppValue(
"ApplePressAndHoldEnabled" as NSString,
"NO" as NSString,
kCFPreferencesCurrentApplication
)
2016-08-03 21:55:19 +03:00
super.init()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
2016-08-26 10:19:40 +03:00
2016-09-25 19:29:42 +03:00
@IBAction override func showHelp(_: Any?) {
2016-09-25 18:50:33 +03:00
NSWorkspace.shared().open(URL(string: "https://github.com/qvacua/vimr/wiki")!)
2016-08-26 10:19:40 +03:00
}
}