Added a programs list.

This commit is contained in:
2025-01-08 15:19:40 -08:00
parent 76713bed2d
commit 8b0e42a7c8
6 changed files with 331 additions and 102 deletions

View File

@@ -3,14 +3,6 @@ import Carbon
import ServiceManagement
import OSLog
fileprivate enum ViewConstants {
static let spacing2: CGFloat = 2
static let spacing5: CGFloat = 2
static let spacing10: CGFloat = 10
static let spacing20: CGFloat = 20
static let spacing40: CGFloat = 40
}
class SettingsViewController: NSViewController, NSTextFieldDelegate,
KeyDetectorButtonDelegate, NSTableViewDataSource, NSTableViewDelegate,
MyTableCellViewDelegate
@@ -51,13 +43,13 @@ class SettingsViewController: NSViewController, NSTextFieldDelegate,
private var ctrlButton: NSButton = {
let button = NSButton()
button.title = ""
button.action = #selector(handleModifiers)
button.setButtonType(.pushOnPushOff)
button.sizeToFit()
button.bezelStyle = .rounded
button.translatesAutoresizingMaskIntoConstraints = false
return button
button.title = ""
button.action = #selector(handleModifiers)
button.setButtonType(.pushOnPushOff)
button.sizeToFit()
button.bezelStyle = .rounded
button.translatesAutoresizingMaskIntoConstraints = false
return button
}()
private var cmdButton: NSButton = {
@@ -321,8 +313,6 @@ class SettingsViewController: NSViewController, NSTextFieldDelegate,
pathsTableView.dataSource = self
pathsTableView.delegate = self
pathsTableView.delegate = self
pathsControl.target = self
pathsControl.action = #selector(affectPaths(_:))