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

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

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