29 lines
745 B
Swift
29 lines
745 B
Swift
import Cocoa
|
|
import Foundation
|
|
|
|
// MARK: - Main Entry Point
|
|
@main
|
|
class EnhancedTerminalApp: NSObject, NSApplicationDelegate {
|
|
var mainWindow: MainWindowController!
|
|
|
|
func applicationDidFinishLaunching(_ notification: Notification) {
|
|
// Create and show main window
|
|
mainWindow = MainWindowController()
|
|
mainWindow.showWindow(nil)
|
|
|
|
// Activate app
|
|
NSApp.activate(ignoringOtherApps: true)
|
|
}
|
|
|
|
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
|
return true
|
|
}
|
|
|
|
static func main() {
|
|
let app = NSApplication.shared
|
|
let delegate = EnhancedTerminalApp()
|
|
app.delegate = delegate
|
|
app.run()
|
|
}
|
|
}
|