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

  • Home
  • SEARCH
  • 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 8429727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:24:59+00:00 2026-06-10T05:24:59+00:00

I have loaded some values into local documents in my application. When the application

  • 0

I have loaded some values into local documents in my application. When the application is running app writes, say, 50 records.

Now, when the user force-closes the app and starts it again: The files only write the new records 50+existing 50.

How to handle this issue?

  • 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-10T05:25:01+00:00Added an answer on June 10, 2026 at 5:25 am

    If your application is force-quit completely, you do not have an opportunity to write out additional data. No more of your code is run.

    If you are talking about the force quit that happens when your app is in the background and the OS wants to free up memory, you must implement a callback in your application delegate (you can use notifications too but let’s keep it simple) and observe when the OS places your app in the background. At that point, write your data to disk:

    @implementaton MyAppDelegate
    - (void)applicationDidEnterBackground: (UIApplication *)application {
        [myDatabase commit];
        [myFiles save];
        [myWhatever doWhatever];
        // etc.
    }
    @end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code the requires the application to be completely loaded and compiled
I have to do some processing on a file loaded by the user. This
I have a plugin that is loaded by this application.. This plugin calls some
Say I have got some data series generated by my plotting application, and I
I have some data loaded as a np.ndarray and need to convert it to
I have a page, when loaded it does some stuff with JQ. In the
I have some vertex data. Positions, normals, texture coordinates. I probably loaded it from
Need some help, please. I have a line of horizontal thumbnails loaded as ONE
I have a texture loaded into memory that is of RGBA format with various
I've been looking into a legacy application with a web-based user interface. Given its

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.