terrain/Terrain/AppDelegate.swift

29 lines
652 B
Swift
Raw Normal View History

2018-11-03 09:43:38 -04:00
//
// AppDelegate.swift
// Terrain
//
// Created by Eryn Wells on 11/3/18.
// Copyright © 2018 Eryn Wells. All rights reserved.
//
import Cocoa
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
@IBOutlet weak var window: NSWindow!
2018-11-03 15:05:27 -04:00
@IBOutlet weak var terrainViewController: TerrainViewController!
2018-11-03 09:43:38 -04:00
func applicationDidFinishLaunching(_ aNotification: Notification) {
2018-11-03 15:05:27 -04:00
window.contentViewController = terrainViewController
window.makeKeyAndOrderFront(nil)
2018-11-03 09:43:38 -04:00
}
func applicationWillTerminate(_ aNotification: Notification) {
// Insert code here to tear down your application
}
}