INNER CODE UNIT · Swift

post

AgentiLoop/Agent · Agent/AgentApp.swift:49

private func post(_ name: Notification.Name) {
    NotificationCenter.default.post(name: name, object: nil)
}

final class AppDelegate: NSObject, NSApplicationDelegate {
    func applicationDidFinishLaunching(_ notification: Notification) {
        // Initialize accessibility defaults so UserDefaults keys exist before isRestricted() checks
        _ = AccessibilityEnabled.shared

        // Persist window frame across launches and tiling
        DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
            if let window = NSApplication.shared.windows.first {
                window.setFrameAutosaveName("AgentMainWindow")
            }
        }

        // Insert 🦾 Agents menu; re-insert on didBecomeActive to survive SwiftUI menu rebuilds
        insertAgentsMenu()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…