INNER CODE UNIT · Swift
spawnJumpWindow
mjrusso/scoot · Scoot/AppDelegate.swift:160
func spawnJumpWindow(on screen: NSScreen) {
let controller = JumpWindowController.spawn(on: screen)
jumpWindowControllers.append(controller)
}
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)
}