• 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: Representing an object graph
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Representing an object graph


  • Subject: Re: Representing an object graph
  • From: Chris Hanson <email@hidden>
  • Date: Tue, 06 Dec 2016 19:18:34 -0800

On Dec 5, 2016, at 4:18 PM, Daryle Walker <email@hidden> wrote:

> I've heard that Core Data is a object graph and persistence library. What if you want just the first part?  The graph seems like a neat way to save on modeling code, the external format is not database-ish at all (so the capability for custom export formats won't help). Can I just not use the persistence part and use custom save & load functions? Or do I have to (or should) give up on Core Data?

This is exactly the sort of thing that subclassing NSAtomicStore <https://developer.apple.com/reference/coredata/nsatomicstore> lets you do.

There are only a few methods to override, and then you can just use one of your own documents as if it were one of the built-in persistent store types.

  -- Chris

_______________________________________________

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: Representing an object graph
      • From: Daryle Walker <email@hidden>
References: 
 >Representing an object graph (From: Daryle Walker <email@hidden>)

  • Prev by Date: UINavigationBar content margins in UIPresentationController subclass
  • Next by Date: watchOS
  • Previous by thread: Re: Representing an object graph
  • Next by thread: Re: Representing an object graph
  • Index(es):
    • Date
    • Thread