INNER CODE UNIT · Swift

closeJumpWindow

mjrusso/scoot · Scoot/AppDelegate.swift:165

    func closeJumpWindow(managedBy controller: JumpWindowController) {
        controller.close()
        jumpWindowControllers.removeAll(where: {
            $0 == controller
        })
    }

    func rebuildJumpWindows() {
        OSLog.main.log("Closing existing jump windows.")

        for windowController in jumpWindowControllers {
            closeJumpWindow(managedBy: windowController)
        }

        OSLog.main.log("Spawning new jump windows.")

        for screen in NSScreen.screens {
            spawnJumpWindow(on: screen)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…