Files
Sprachmittler/App/AppDelegate.swift
T

20 lines
840 B
Swift

import AppKit
import SprachmittlerCore
/// Lifecycle glue: composition root, Services provider, double-copy watcher, termination.
@MainActor
final class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_ notification: Notification) {
// Build AppEnvironment here (composition root): settings, Ollama services, session,
// double-copy watcher and panel controller. Start the watcher only after explicit consent.
//
// The Services provider is wired here once SprachmittlerCapture.ServicesProvider exists:
// NSApp.servicesProvider = servicesProvider
// NSUpdateDynamicServices()
}
func applicationWillTerminate(_ notification: Notification) {
// Cancel in-flight translations, stop the pasteboard watcher and close the panel.
}
}