mirror of
https://github.com/modo-studio/SugarRecord.git
synced 2024-09-11 14:36:41 +03:00
Add dispose method to CoreDataObservable
Signed-off-by: John Grange <john.grange.ny@gmail.com>
This commit is contained in:
parent
4c9ed87fb3
commit
b148bbe6ec
@ -41,7 +41,14 @@ public class CoreDataObservable<T: NSManagedObject where T:Equatable>: Observabl
|
||||
_ = try? self.fetchedResultsController.performFetch()
|
||||
}
|
||||
|
||||
|
||||
|
||||
// MARK: - Dipose Method
|
||||
override func dispose() {
|
||||
|
||||
print("Disposed Observer for entity: \(self.fetchRequest.entityName)")
|
||||
}
|
||||
|
||||
|
||||
// MARK: - NSFetchedResultsControllerDelegate
|
||||
|
||||
public func controller(controller: NSFetchedResultsController, didChangeObject anObject: AnyObject, atIndexPath indexPath: NSIndexPath?, forChangeType type: NSFetchedResultsChangeType, newIndexPath: NSIndexPath?) {
|
||||
|
Loading…
Reference in New Issue
Block a user