I have an Mac Application using a NSPersistentDocument. I want to get notified when Objects are deleted to save this information using Core Data. So I'm listening for NSManagedObjectContextObjectsDidChangeNotification. Often it is called instantly when objects are deleted, but sometimes it is only called after the persistent document is saved with all deleted objects not being notified before. Because I want to let the user directly export all existing objects (and not the deleted anymore) what to I have to do to become notified instantly to save the delete information or do I have to use it in another way?
NSManagedObjectContextObjectsDidChangeNotification not always called instantly
1.6k views Asked by Tobe At
1
There are 1 answers
Related Questions in MACOS
- How do I customize NSOutlineView to have border color?
- Force sublime text to use PATH from the shell value
- Do executable files always open a terminal window on MacOS?
- setting OpenGL version in objective-C
- C std library don't appear to be linked in object file
- Cross compile simple standard C program on Linux for Mac
- How to generate request format for WCF web service method for Mac and iPhone
- Bundle Multiple Xamarin apps in one pkg installer
- How to Handle Command Line Prompt from a Cocoa App
- AVFoundation - Process each image separately
Related Questions in CORE-DATA
- Swift code with multiple NSDateFormatter - optimization
- IOS Where To Persist Current User from Back-end
- iCloud Core Data "no document at URL"
- restrict sqlite-wal and sqlite-shm from icloud backup
- Delegate returning nil - Swift
- How to set a core-data attibute to nil, in Swift?
- iOS make task run on background thread Thread safe?
- Calling method on object in NSPredicate with Core Data
- How to get Managed Object context from RestKit 0.20
- Write NSData in NSHomeDirectory
Related Questions in NSMANAGEDOBJECTCONTEXT
- Swift get specific NSManagedObject from entity (core data)
- Core Data properties based upon relationships returning NULL
- Core Data concurrency queue style MOC getters thread safety
- managed object context nil restkit while unitTesting
- Data not reloading automatically in uitableview when using nsfetchedresultscontroller
- Can concurrence type be changed of NSPersistentDocument's managedObjectContext?
- NSFetchedResultsController with transformable attribute
- How to merge unsaved NSManagedObjectContext changes from one context to another?
- Xcode 8.1 - NSManagedObjectContext missing in AppDelegate
- Pointer to a NSManagedObject outside a performBlock
Related Questions in NSNOTIFICATIONS
- How to get tableview cell text label from 2nd viewcontroller to a label from 1st viewcontroller?
- Sending data via notificationcenter in a singleton objective-c
- Determine when a NSWindow is closing versus leaving full screen
- watchkit , iOS sending data between watch and iphone
- NSNotification Received But Method Is Not Called
- Error: [DataDisplayViewController - ddvcLoadedRcv] unrecognized selector sent to instance
- How to parse xml and simultaneously save to sqlite asynchronously in iOS 7?
- NSWorkspaceWillPowerOffNotification never called
- NSNotification being raised multiple times
- Prevent NSManagedObjectContextDidSaveNotification event to overlap
Related Questions in NSPERSISTENTDOCUMENT
- Can concurrence type be changed of NSPersistentDocument's managedObjectContext?
- Is it bad to use NSPersistentDocument with an alternate save format?
- NSDocument: The document could not be autosaved. The file has been changed by another application
- Is -makeWindowControllers the best place to initialize an NSPersistentDocument?
- NSManagedObjectContextObjectsDidChangeNotification not always called instantly
- Is there a newer version of NSPersistentDocument Core Data Tutorial for Mac OS X v10.4?
- Where to get managed object context in NSPersistentDocument?
- What happend with external records in NSPersistentDocument documents?
- How to read an object from managedObjectContext in Core Data ( Xcode )
- "Save As" does not work for my NSPersistentDocument application
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
NSManagedObjectContextObjectsDidChangeNotification is no longer issued as frequently or quickly on 10.7 as on 10.6. You can force Core Data to issue the notification (assuming there are changes) by calling
-[NSManagedObjectContext processPendingChanges].