So the selected answer for this is from nearly 2 years ago now, and there's a few issues with it:
- It's not ARC friendly - need to remove release call on newMoc - ARC won't even compile with that
- You should be doing the weakSelf / strongSelf dance inside the block - otherwise you're probably creating a retain loop on the observer creation. See Apple's doc's here: http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/ProgrammingWithObjectiveC/WorkingwithBlocks/WorkingwithBlocks.html
- @RyanG asked in a comment why he's blocking. My guess is because the recently edited method has waitUntilDone:YES - except that's going to block the main thread. You probably want waitUntilDone:NO but I don't know if there's UI updates firing from these change events as well so it would require testing.
--Edit--
Looking further into #3 - waitUntilDone:YES isn't a valid methodSignature for managed context objects, so how does that even work?