     var changeIsUserDriven = false
 
 
-    deinit
-    {
+    deinit {
         NSNotificationCenter.defaultCenter().removeObserver(self)
     }
 
 
-    override func viewDidLoad()
-    {
+    override func viewDidLoad() {
         super.viewDidLoad()
 
         navigationItem.rightBarButtonItem = self.editButtonItem()

    }


    override func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath)
    {
        cell.textLabel?.font = UIFont.preferredFontForTextStyle((cell.textLabel?.font.fontDescriptor().objectForKey("NSCTFontUIUsageAttribute") as! String))
        cell.detailTextLabel?.font = UIFont.preferredFontForTextStyle((cell.detailTextLabel?.font.fontDescriptor().objectForKey("NSCTFontUIUsageAttribute") as! String))
    }


    override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath)
    {
        let station = fetchedResultsController.objectAtIndexPath(indexPath) as! CDStation
        //let cell = tableView.cellForRowAtIndexPath(indexPath)

        station.isHidden = NSNumber(bool: !station.isHidden.boolValue)
        //configureCell(cell!, atIndexPath: indexPath)

        let context = Datamanager.sharedManager().managedObjectContext!

        do {
            try context.save()

        tableView.deselectRowAtIndexPath(indexPath, animated: true)
    }


    // MARK: NSFetchedResultsController


    lazy var fetchedResultsController : NSFetchedResultsController = {
        NSFetchedResultsController.deleteCacheWithName("StationPicker")

        let contxt = Datamanager.sharedManager().managedObjectContext

        let fetchRequest = NSFetchRequest(entityName: "CDStation")
        fetchRequest.fetchBatchSize = 20
