CutBox.app

Coverage Report

Created: 2024-03-12 03:40

.../Source/CutBox.swift
Line
Count
Source
1
//
2
//  CutBox.swift
3
//  CutBox
4
//
5
//  Created by Jason Milkins on 17/3/18.
6
//  Copyright © 2018-2023 ocodo. All rights reserved.
7
//
8
9
import Cocoa
10
import Magnet
11
12
/// CutBox main
13
@NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate {
14
15
2
    var prefs = CutBoxPreferencesService.shared
16
2
    var hotkeyCenter = HotKeyCenter.shared
17
18
1
    func applicationDidFinishLaunching(_ aNotification: Notification) {
19
1
        prefs.loadJavascript()
20
1
    }
21
22
1
    func applicationWillTerminate(_ aNotification: Notification) {
23
1
        hotkeyCenter.unregisterAll()
24
1
    }
25
}