1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-23 10:13:32 +03:00
vimr/VimR/AppDelegate.swift
Tae Won Ha 4f46e619cf
Rename nvox to VimR
- hopefully we renamed everything
2016-07-12 17:59:01 +02:00

32 lines
767 B
Swift

/**
* Tae Won Ha - http://taewon.de - @hataewon
* See LICENSE
*/
import Cocoa
import PureLayout
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
@IBOutlet weak var window: NSWindow!
private let mainWindowManager = MainWindowManager()
@IBAction func debugSomething(sender: AnyObject!) {
NSLog("debug sth...")
}
@IBAction func newDocument(sender: AnyObject!) {
self.mainWindowManager.newMainWindow()
}
func applicationDidFinishLaunching(aNotification: NSNotification) {
// let testView = InputTestView(frame: CGRect(x: 0, y: 0, width: 300, height: 300))
// self.window.contentView?.addSubview(testView)
// self.window.makeFirstResponder(testView)
self.mainWindowManager.newMainWindow()
}
}