I took a cue from Apple's own multiple samples. I thought about that and I
changed my code to force create the managed object context and the persistent
store right when the application has started.
Thanks, Mike. Seems we got to the same cause.Í
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:La
Thinking about it more, your method doesn't really make sense. In order to use
a context it must be associated with a persistent store coordinator, in order
to know its model. So it doesn't make sense to create the coordinator lazily.
Instead, make *adding the store* be the lazy bit
Sent from m
Hey Mike.
No assertions have ever been fired, which I thought was weird a bit as well.
BTW, this is on iOS, not Mac OS X if that makes any difference.
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin
http://www.nemesys-soft.com/
Logiciels Nemesys So
On 16 Feb 2013, at 00:37, Laurent Daudelin wrote:
> I got a few crash reports from users that have a problem with my CoreData app.
>
> Given the following code:
>
> /*
> Returns the persistent store coordinator for the application.
> If the coordinator doesn't already exist, it is created and
I got a few crash reports from users that have a problem with my CoreData app.
Given the following code:
/*
Returns the persistent store coordinator for the application.
If the coordinator doesn't already exist, it is created and the application's
store added to it.
*/
- (NSPersistentStoreCoo