         self.defaultContext = self.managedObjectContext(name: self.nameDB)
     }
     
-    public func updateContext(managedObjectContext: AnyObject?) {
-        if let context = managedObjectContext as? NSManagedObjectContext {
-            self.defaultContext = self.managedObjectContext(name: self.nameDB, managedObjectContext: context)
-            self.saveContext()
-        }
-    }
+///    public func updateContext(managedObjectContext: AnyObject?) {
+///        if let context = managedObjectContext as? NSManagedObjectContext {
+///            self.defaultContext = self.managedObjectContext(name: self.nameDB, managedObjectContext: context)
+///            self.saveContext()
+///        }
+///    }
     
     
     private func managedObjectModelWithName(name: String) -> NSManagedObjectModel {

        return managedObjectContext
    }
    
    public func saveContext () {
        let context = self.defaultContext
        

import CoreData

public class TCoreDataManager: NSObject {
    
    public private(set) var defaultContext: NSManagedObjectContext = NSManagedObjectContext(concurrencyType: .mainQueueConcurrencyType)
    
    public private(set) var nameDB: String
