• 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: Opinion: Core Data or roll my own?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opinion: Core Data or roll my own?


  • Subject: Re: Opinion: Core Data or roll my own?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 08 Apr 2014 16:20:18 -0700

On Apr 8, 2014, at 3:13 PM, Rick Mann <email@hidden> wrote:

> As I write this, I realize that I can't just keep a whole document in memory; the library (which would be a collection of separate files on disk, but presented as a unified collection of content in the UI) could be very large and I'd rather not load in the whole thing. Nevertheless, I think that's doable.

In my experience (and I’ve done this at least three times), creating an object model that can be “paged” in and out from disk is hard, and takes more development time than you think it will. It may not seem hard to get it mostly working, but you keep having to come back to it to fix bugs or handle edge cases. I’m not a big fan of Core Data, but if you’ve worked with it before I suspect you’ll find it more efficient to use it for this than to roll your own.

—Jens
_______________________________________________

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


  • Follow-Ups:
    • Re: Opinion: Core Data or roll my own?
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: Excessive open gui graphics files on Mavericks
  • Next by Date: Re: Opinion: Core Data or roll my own?
  • Previous by thread: Re: Opinion: Core Data or roll my own?
  • Next by thread: Re: Opinion: Core Data or roll my own?
  • Index(es):
    • Date
    • Thread