Re: Reliable way to find out if CoreData finished loading
Re: Reliable way to find out if CoreData finished loading
- Subject: Re: Reliable way to find out if CoreData finished loading
- From: "I. Savant" <email@hidden>
- Date: Fri, 18 Sep 2009 12:08:22 -0400
On Sep 17, 2009, at 6:46 PM, Mantas Masalskis wrote:
I'm loading Core Data object via Managed Object Context in IB. It
looks like it hasn't finished loading when
applicationDidFinishLoading is fired.
Perhaps thinking about this a different way would clarify things.
You don't "load a context". You create a context and use it to fetch
objects from the store (or merely to create objects if you're using an
in-memory store).
So, if you have some controllers that aren't ready yet, you can
simply instruct them to -fetch: ... this will force them to fetch
immediately, rather than waiting for a future cycle of the run loop.
What is the appropriate way to do smth once Managed Object Context
is loaded?
What's a "smth"?
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden