         //
     }
 }
+
+extension ViewControllerSnapshots: NSComboBoxDelegate {
+
+    func comboBoxSelectionDidChange(_ notification: Notification) {
+        switch self.selectplan.indexOfSelectedItem {
+        case 1:
+            _ = PlanSnapshots(plan: 1)
+        case 2:
+            _ = PlanSnapshots(plan: 2)
+        default:
+            return
+        }
+    }
+}

    weak var processterminationDelegate: UpdateProgress?
    var abort: Bool = false
    // Reference to which planin combox
    var comboBoxValues = ["plan1",
                          "plan2"]

    @IBOutlet weak var snapshotstableView: NSTableView!
    @IBOutlet weak var rsynctableView: NSTableView!

        self.numbersinsequencetodelete = 0
    }

    private func initcombox(combobox: NSComboBox, index: Int) {
        combobox.removeAllItems()
        combobox.addItems(withObjectValues: self.comboBoxValues)
