Matthew Morey

I'm an engineer, developer, author, hacker, creator, tinkerer, traveler, snowboarder, surfer, and husband.

I create iOS apps professionally and independently.

Core Data and multiple managed object contexts

Houston iPhone Developers Meetup - Houston, TX

31 March 2013

Recently I had the honor of presenting at the March Houston iOS Developers Meetup event on Core Data and multiple managed object contexts (MOC).

When using Core Data for persisting app data multiple MOCs are often required to avoid blocking UI. Typically you would create a background MOC and listen for changes on the main MOC, merging changes as necessary. With iOS 5, MOCs now have parent context and the ability to set concurrency types. These new features greatly simplify dealing with Core Data on background queues.