Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6085673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:39:55+00:00 2026-05-23T11:39:55+00:00

I have two managed object contexts, A and B. These two contexts are kept

  • 0

I have two managed object contexts, A and B. These two contexts are kept in sync by merging changes from one to the other whenever they’re saved (by monitoring NSManagedObjectContextDidSaveNotification). I’ve verified that changes to A and B are merging properly.

I have an NSFetchedResultsController monitoring updates to B. I find that certain updates to A do not result in the nsfrc firing on B. When a new managed object is created and added to A with the attributes the nsfrc is looking for (on B), the nsfrc fires after B merges changes from the save of A. However, if the managed object already exists on A (and B), and I modify the object and save A, while I can see that B is merging the changes from the save notification of A, the nsfrc monitoring B does not fire.

What am I missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:39:56+00:00Added an answer on May 23, 2026 at 11:39 am

    I had this problem and it seems that I’ve solved it. I don’t know what I did exactly. I mean I did a couple of things and don’t know, which one became the solution. So I will simply describe…

    I’ve refactored my code to follow some “hints”, found in official docs & some forums:

    1. If you manage NSManagedObjectContext in another thread, it should be created in that thread and not somehow passed there.
    2. You should add observer (to get save notifications for merging) in main thread only – this way they will be also merged in the main thread.
    3. (Optional, but I did it) You can try to save context in main thread only even if it was created and managed in the background thread.

    1 & 3 looks more like some “magic”, so I think you should try to follow 2 first. Hope this will help you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have two versions of a managed C++ assembly, one for x86 and one
I have a wicket page , which contains two Spring-managed beans , one is
I have a Managed Object Context to which I add two different SQLite stores.
I am using two managed object contexts in my iOS app. The first context
I'm having a problem with mixing managed and unmanaged code. I have created two
I have two applications written in Java that communicate with each other using XML
I have two identical tables and need to copy rows from table to another.
I have two classes, and want to include a static instance of one class
I have a Controller bean (SearchController) that has two managed bean as managed properties
I have a CoreData model (managed object) called Item: @interface Item : NSManagedObject {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.