iphone - Detect lightweight core data migration
I'm using Core Data's automatic lightweight migration successfully. However, when a particular entity gets created during a migration, I'd like to populate it with some data. Of course I could check if the entity is empty every time the application starts, but this seems inefficient when Core Data has a migration framework.
Is it possible to detect when a lightweight migration occurs (possibly using KVO or notifications), or does this require implementing standard migrations?
I've tried using the NSPersistentStoreCoordinatorStoresDidChangeNotification
, but it doesn't fire when migrations occur.
This question and all comments follow the
"Attribution Required."
Similar questions
- Implementing automatic lightweight migration of core data (iPhone)
- ios - Auto lightweight migration of iPhone core data
- ios - Core data - mixed lightweight and custom migration
- iphone - Core data forces custom mapping model / policy, not lightweight migration
- iphone - Core data inference migration - automatic "lightweight" vs. manual
- More similar questions >>
All Answers
Leave a Reply