• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
core data, synchonizing multiple MOC's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

core data, synchonizing multiple MOC's


  • Subject: core data, synchonizing multiple MOC's
  • From: Diederik Hoogenboom <email@hidden>
  • Date: Sat, 20 May 2006 10:24:30 +0200

I have a separate managed object context (threaded) in which I insert a managed object. When the thread completes I save the changes and try to make the main MOC aware of the new objects. However the changes are not visible in the tableview bound to the array controller (bound to the main MOC) . When I do the inserting using the main MOC everything works fine.

The method I use to make the main MOC aware of the second MOC is objectWithID using the result of objectID from the second MOC. Instead of objectWithID: I have also tried refreshObject: mergeChanges: with no result.

When I reload my application the (saved) data is displayed fine.

Any ideas?

Thanks,

Diederik


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: core data, synchonizing multiple MOC's
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Possible to customize the toolbar customization sheet?
  • Next by Date: Problems centering window
  • Previous by thread: Re: Possible to customize the toolbar customization sheet?
  • Next by thread: Re: core data, synchonizing multiple MOC's
  • Index(es):
    • Date
    • Thread