NSFetchedResultsController doesn't fetch up the child-parent moc chain?

Posted by Kronusdark on Stack Overflow See other posts from Stack Overflow or by Kronusdark
Published on 2013-06-28T01:08:18Z Indexed on 2013/06/28 16:21 UTC
Read the original article Hit count: 259

I cannot find any clarification on this, so it may be a bug.

Problem is, I have a series of parent-child Managed Object Context's.

When I save on a child context the changes get pushed up to the parent, and I can fetch using a plain old NSFetchRequest.

However, if I rely on an NSFetchedResultsController to pull these changes into a sibling context to the first, they do not see them.

calling -(void)performFetch: error; doesn't seem to pull the changes either.

After a restart of the app, all new data is available.

My hypothesis is that NSFetchedResultsController only fetches from its current context and will not follow the chain to the persistent store.

Can someone please set me straight here?

Am I going to have to use notifications to monitor changes on other contexts?

and finally, is this mentioned somewhere in the doc's? I cannot find it for the life of me.

© Stack Overflow or respective owner

Related posts about ios

Related posts about cocoa