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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:19:56+00:00 2026-06-05T06:19:56+00:00

I am pretty new to iOS and I am currently designing the Create a

  • 0

I am pretty new to iOS and I am currently designing the “Create a new event” page for my app.

Some info:

  1. A user can click on create a new event and then press back to cancel creating this new event. (I am using UINavigationController)
  2. 1 video can be attached to a particular event.
  3. A user can create a new event, record a video, then decides not to go ahead with saving it (by pressing back)
  4. Each event must generate a uuid. This uuid is required to prevent entity collision between different clients creating events and submitting them to the server.
  5. Each video captured is named uuid.mov for storing into the file system before the event is uploaded to the server.

Coming from a rails background, I am used to doing the following:

  1. When the user click on “Create new event page”, an event is created but not saved to the db.
  2. The user then enters attributes to the page and decides if he/she wants to commit
  3. When commit take places, the event is attributed with the information provided. The event is then saved.

However, I don’t believe Core Data has an API that allows the developer to create an entity without saving it. Currently, I am doing something like this:

  1. When the user visits the “create new event page”, an empty object is created and stored into the db. The reference to the event instance is passed to the Controller of the create a new event page.
  2. When the user has inputted all the information and shot a video (the uuid is created at awakeFromInsert and is set during 1), saving is merely setting the entity with the required attribute.
  3. If the user decides to cancel creating an event, I am checking whether cancel is pressed. if it is, both the event and the video file is deleted.

Code to check if Cancel is pressed.

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    if (![[self.navigationController viewControllers] containsObject:self]) {

This is a bit complicated to be honest. Do you guys have a better suggestion?

  • 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-05T06:19:59+00:00Added an answer on June 5, 2026 at 6:19 am

    It actually works as you described Rails working: new objects aren’t saved to the persistent store until you commit them (via NSManagedObjectContext‘s save: method).

    See the Creating and Deleting Managed Objects section of the Core Data Programming Guide. Excerpting…

    Simply creating a managed object does not cause it to be saved to a
    persistent store. The managed object context acts as a scratchpad. You
    can create and register objects with it, make changes to the objects,
    and undo and redo changes as you wish. If you make changes to managed
    objects associated with a given context, those changes remain local to
    that context until you commit the changes by sending the context a
    save: message. At that point—provided that there are no validation
    errors—the changes are committed to the store.

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

Sidebar

Related Questions

Im pretty new at iOS programming, I'm trying to make this budget app. I
I am pretty new with iOS 5 and I am thinking in writing an
I'm fairly new to ARC for iOS (and pretty new to iOS in general)
I am pretty new to PHP and MySQL and I just can't figure this
I'm pretty new to Eclipse plugins and I want to create a VerticalRuler, I
I'm pretty new to iOS programming so sorry for any doh questions ;) I
I'm pretty new to iOS development and it's not clear to me how to
Ok, I'm still pretty new to iOS development, so I apologize if this is
I'm pretty new to coding for iOS and i have a question about setting
Pretty new to sqlite (and sql). Trying to modify one table using another. create

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.