magicalpanda/MagicalRecord — Issue #77: NSNotificationCenter observing NSManagedObjectContextObjectsDidChangeNotification doesn't work.
Author: hsjunnesson
Created: 2011-10-20 09:49:26+00:00
State: open

Having added MagicalRecord to a project which was built with plain vanilla Core Data. I've used this following pattern in a few places:

[[NSNotificationCenter defaultCenter] addObserverForName:NSManagedObjectContextObjectsDidChangeNotification
object:[NSManagedObjectContext defaultContext]
queue:[NSOperationQueue mainQueue]
usingBlock:^(NSNotification *arg) {
...
}];

This never gets called. I see there's a context called *contextThatNotifiesDefaultContextOnMainThread* but that doesn't seem to work either.