• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data Initialization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Core Data randomly reports updating an object, but it is unchanged (From: Jerry Krinock <email@hidden>)
 >Core Data Initialization (From: Dave <email@hidden>)
 >Re: Core Data Initialization (From: Jerry Krinock <email@hidden>)
 >Re: Core Data Initialization (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Subclassing a View Controller in a Storyboard
  • Next by Date: Re: Core Data Initialization
  • Previous by thread: Re: Core Data Initialization
  • Next by thread: Re: Core Data Initialization
  • Index(es):
    • Date
    • Thread