Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (23 sloc) 690 Bytes
//
// MenuController.swift
// FaceTime Killer
//
// Created by Adam Simpson on 12/7/16.
// Copyright Β© 2016 Adam Simpson. All rights reserved.
//
import Cocoa
let killer = Killer()
class MenuController: NSObject {
@IBOutlet weak var statusMenu: NSMenu!
let statusItem = NSStatusBar.system().statusItem(withLength: NSVariableStatusItemLength)
@IBAction func quitClicked(_ sender: NSMenuItem) {
NSApplication.shared().terminate(self)
}
@IBAction func killClicked(_ sender: NSMenuItem) {
killer.killFacetime()
}
override func awakeFromNib() {
statusItem.title = "πŸ“·"
statusItem.menu = statusMenu
}
}
You can’t perform that action at this time.