INNER CODE UNIT · Swift
bringToBackground
mjrusso/scoot · Scoot/AppDelegate.swift:331
func bringToBackground() {
NSApp.hide(self)
}
// MARK: Actions
@IBAction func hidePressed(_ sender: NSMenuItem) {
bringToBackground()
}
@IBAction func useElementBasedNavigationPressed(_ sender: NSMenuItem) {
bringToForeground(using: .element)
}
@IBAction func useGridBasedNavigationPressed(_ sender: NSMenuItem) {
bringToForeground(using: .grid)
}