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 7675411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:57:21+00:00 2026-05-31T16:57:21+00:00

Scenario: I’m dealing with 2 viewControllers each with it’s own context (same thread). I’m

  • 0

Scenario:

I’m dealing with 2 viewControllers each with it’s own context (same thread). I’m trying to pass the managedObject’s objectID from MOC2 -> MOC1, via a delegate method. Fine, did that, it seems to be passing the ObjectID.

Here’s the problem…from MOC1 (the delegate) I get a pointer to the new object via [self.localMOC objectWithID:thePassedID]. I run an NSLog on the found object, the log describes it, it seems to be found. Now when I try to find it in the updated fetched results controller it cannot be found even though it shows the object in the table view which is using that same results controller.

Here are the log statements…
The object via objectWithID: <Account: 0x6b11f90> (entity: Account; id: 0x6db44b0 <x-coredata:///Account/t5F84827D-E710-4331-A462-FCA1A0D335102> ; data: <fault>)

The results controller object: <Account: 0x6b1fc50> (entity: Account; id: 0x6b50250 <x-coredata://84B6642A-9C80-451F-BED4-52952EDFC43C/Account/p9> ; data: <fault>)

It seems as one is a permanentID and the other is a temporaryID, as well as completely different memory addresses.

Any clues as to what I am doing wrong?

Below is the flow:

enter image description 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-31T16:57:23+00:00Added an answer on May 31, 2026 at 4:57 pm

    After a redesign I utilized the iOS5 parent/child MOC’s. I still don’t totally understand why the object ID’s, even though they were permanent ID’s, returned different objects between contexts. It obviously had something to do with it’s merging even though I refetched data after a full save. Hopefully the inner workings of core data will gradually make more sense to me as time goes by. Thanks for the suggestions though.

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

Sidebar

Related Questions

Scenario: A stored procedure receives from code a DateTime with, let's say DateTime.Now value,
Scenario You've got several bug reports all showing the same problem. They're all cryptic
Scenario : I'm currently trying to build a poor man's Google Maps using scripts
Scenario: There are multiple C structs, each of which contains a function pointer to
Scenario: I have imported the data from SQl Server to HDFS. The data stored
Scenario Downloading an xlsx file to my local drive from a http location using
Scenario: Repository structure changed from /trunk/ to /projectName/trunk/ and the local copy is outdated
Scenario: Assume I want to define my own class. public class Person { }
Scenario : I am trying to insert a team (composed by multiple persons) on
Scenario: You have an ASP.Net webpage that should display the next image in a

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.