             
             try persistenceSetup.context.save()
             callback(nil)
+            observer?.notificationAdded(notif)
         
         }
         catch {

import UIKit
import CoreData

public class NotifiOSCumulationCenter {
    
    let persistenceSetup : NCPersistenceStackSetup

        let fetchRequest = NSFetchRequest(entityName: NCNotification.entityName)
        fetchRequest.predicate = NSPredicate(value: true)
        fetchRequest.includesPropertyValues = false
        let results = try! persistenceSetup.context.executeFetchRequest(fetchRequest) as! [NCNotification]
        observer?.notificationsWillBeRemoved(results)
        for notif in (results){
            
            persistenceSetup.context.deleteObject(notif)

