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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:38:21+00:00 2026-06-13T15:38:21+00:00

Consider a managed object with a set of properties A which have to be

  • 0

Consider a managed object with a set of properties A which have to be replaced with a set of properties B. However, the mechanism to retrieve the information for B is not fail-safe (e.g. if there is a failing network connection) and there is a chance that B cannot be fully constructed. In this case, I need to fall back to the state of object A to maintain consistency.
What is the best Core Data pattern to realize a fail safe, consistent update mechanism in this case?

  • 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-06-13T15:38:22+00:00Added an answer on June 13, 2026 at 3:38 pm

    Until you send the save: selector to the NSManagedObjectContext object, none of your changes are persisted. Once ‘saved’ you have created a ‘commit point’. If you want to roll back any changes you have made since the last commit point in core data send the rollback selector to your NSManagedObjectContext. You will need to check for successful outcome of your network activity and send either save: or rollback depending on the final outcome.

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

Sidebar

Related Questions

Consider I have a property named sampleObject. In dealloc method, which should be the
We have a .NET application which our customers consider too large for mass deployment
consider a JSF web application with a managed bean FooBean.java. I've declared this FooBean
Consider the following Mechanize form object #<Mechanize::Form {name f1} {method POST} {action f.php} {fields
Consider the following code sample that uses MEF to create an object of type
From the docs: If all of a managed object's relationship delete rules are Nullify,
I have a custom data type called StudentID , which has an implicit conversion
I have django 1.3.1, python2.6 and MySQL 5.5.20. init_command in setting.py is set to
When I have an Entity with relationships I don't know which is the best
I want to implement an Observer of a Model class which does not change

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.