Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COThis solution is exactly what I am looking for. I have still a problem. Say if there is a core data object obtained from the first controller, and it is in the parent MOC. Later the second controller is pushed and it wants to edit the object in the child MOC. How am I supposed to move the object to the second MOC then? Thank you.
      singulars
    2. COYou would have to move the new object via the parent MOC. If you've got a child MOC and you save changes, they get pushed to the parent. If you then make another child MOC of that same parent, it will have everything that got pushed to the parent. If you have two child MOCs that exist at the same time, you might have to re-fetch objects in the second child after the first child saves. You would do this by executing your fetch request again, potentially with its `shouldRefreshRefetchedObjects` property set to `YES`.
      singulars
    3. COWhat I meant is like this: Say an objectA is obtained in Controller A. And its MOC is the first one, i.e. objectA.MOC is MOC1. Then I want to do some changes of this object in controller B, but within MOC2. I want to do some like objectA.MOC = MOC2 (this can not be done as .MOC is readonly). So is there any way to assign the object to MOC2? because I do not want to get the object again under MOC from database tables, as the selection might return many objects which share the same selection condition.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload