         // that the list view should be allowed to enter an edit mode.
         return true
     }
+    
+    func widgetDidBeginEditing() {
+        listViewController.editing = true
+    }
+    
+    func widgetDidEndEditing() {
+        listViewController.editing = false
+    }
 
     // MARK: - NCWidgetListViewDelegate
 

import NotificationCenter

class TodayViewController: NSViewController, NCWidgetProviding, NCWidgetListViewDelegate {

    @IBOutlet var listViewController: NCWidgetListViewController!
    
    // MARK: - NSViewController


    override func viewDidLoad() {
        super.viewDidLoad()
        
        listViewController.showsAddButtonWhenEditing = false
        listViewController.contents = []
        NSUserDefaults.groupUserDefaults().favoriteStopIds = [11776, 10308]

    }
