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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:27:34+00:00 2026-05-26T06:27:34+00:00

I have a Mac (not document) app, that uses CoreData. When launching the app,

  • 0

I have a Mac (not document) app, that uses CoreData.

When launching the app, it reads the data stored on the filesystem.

I have to setup some things in -(void)applicationDidFinishLaunching based on the information stored using CoreData.

So it would be nice to know when my app read everything from disk.

If I do my setup in -(void)applicationDidFinishLaunching i doesn’t work. If I do it a few seconds later it works!

Thx!

  • 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-26T06:27:35+00:00Added an answer on May 26, 2026 at 6:27 am

    If you are using object controllers that automatically prepare their own content, you can observe arrangedObjects to find out when they have fetched their content. This does not guarantee that the actual objects are not faults. In fact, that’s one of the main strengths of Core Data: objects are lazily loaded from disk.

    If you for some reason want to make sure that most disk activity has taken place in applicationDidFinishLaunching, you can perform a custom fetch that specifically does not return objects as faults. Look up “prefetching” in the Core Data documentation. However, there is no guarantee that Core Data won’t fault these objects at a later time due to memory constraints, thereby incurring another disk read when those objects are loaded again.

    You can of course also use the NSBinaryStoreType, in which case the entire store is loaded into memory synchronously when it is added to the persistent store coordinator.

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

Sidebar

Related Questions

I have a very simple Mac Cocoa app that just has a Web View
On a Mac, I have a directory of html files that are all document
I have a document-based Core Data application (running on Mac OS X 10.5 and
I am aware of CocoaMySQL but I have not seen a Mac GUI for
I have a mac with a custom PHP 5 install that built from about
I have a mac mini on which I do some iphone and other experimental
We have a set of Mac machines (mostly PPC) that are used for running
I have an application for Mac OS X that supports plugins that are intended
I have created some JavaScript files and they run well from my Mac OS
I am trying to create an mac application in XCode that has some of

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.