         let button = statusItem.button
         button?.toolTip = "Click to show color panel\nRight click to show menu"
         button?.target = self
-        button?.action = "statusButtonPressed:"
+        button?.action = #selector(AppDelegate.statusButtonPressed(_:))
         button?.sendActionOn(Int(NSEventMask.LeftMouseUpMask.union(.RightMouseUpMask).rawValue))
         
         statusMenu.delegate = self

            colorPanel.moveToScreenLocation(location)
            Preferences.sharedPreferences().resetLocation = location
            
            if sender.action == "setResetLocation:" {
                for item in sender.menu!.itemArray {
                    if item.action == sender.action {
                        item.state = (item == sender) ? NSOnState : NSOffState

        for location in Location.CasesArray {
            let item = NSMenuItem(
                title: location.description,
                action: #selector(AppDelegate.setResetLocation(_:)),
                keyEquivalent: ""
            )
            if location == Preferences.sharedPreferences().resetLocation {
