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

24 lines
623 B
Swift

/**
* Tae Won Ha - http://taewon.de - @hataewon
* See LICENSE
*/
import Cocoa
class MainWindowManager {
private var mainWindowControllers: [String: MainWindowController] = [:]
func newMainWindow() {
let mainWindowController = MainWindowController(windowNibName: "MainWindow")
self.mainWindowControllers[mainWindowController.uuid] = mainWindowController
mainWindowController.setup(manager: self)
mainWindowController.showWindow(self)
}
func closeMainWindow(mainWindowController: MainWindowController) {
self.mainWindowControllers.removeValueForKey(mainWindowController.uuid)
}
}