Re: Core Data Initialization
Re: Core Data Initialization
- Subject: Re: Core Data Initialization
- From: Dave <email@hidden>
- Date: Wed, 04 Sep 2013 10:56:29 +0100
On 3 Sep 2013, at 15:59, Fritz Anderson <email@hidden> wrote:
> On 2 Sep 2013, at 9:33 AM, Jerry Krinock <email@hidden> wrote wise things about handling mismatches between stores and MOMs, and the practice of copying a generic store into Documents/ if no store is there.
>
>> On 2013 Sep 02, at 04:01, Dave <email@hidden> wrote:
>>
>>> 1. Is this advisable? Is it Safe?
>>
>> It's kind of weird.
>
> I've done it before, and would be surprised if it were unusual. One would often want to seed an app with default and constant data, wouldn't one?
Yes, of course, but to import a SnapShot of the app.sqlite file isn't the best way of achieving this. In this case anyway, it would be better to hold the default data in some other kind of data file and then write it into the latest Core Data store when the app is first launched.
Cheers
Dave
_______________________________________________
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