• 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: On NSPersistentStore Modeling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: On NSPersistentStore Modeling


  • Subject: Re: On NSPersistentStore Modeling
  • From: Keary Suska <email@hidden>
  • Date: Tue, 10 Jan 2017 08:20:47 -0700

> On Jan 10, 2017, at 4:42 AM, Daryle Walker <email@hidden> wrote:
>
> I read about store coordinators and managed contexts using Core Data models (I.e. "momd" files). But persistent store subclasses use them too right?

Not exactly. The store will need to know how to translate certain Managed Object Model (MOM) related information into how how it stores data. For instance, knowing that a specific entity represents a specific table in your database. Generally this will encourage the developer to make sure the MOM maps to their database schema as closely as possible, but it is not necessary.

> From looking at the docs for the atomic and incremental stores, their internal scheme have to match a specific model too; they can't support generic schemes for arbitrary models, right?

If I understand the question, the answer is no, as long as you implement a generic way of translating the MOM into the store’s storage method, which is really the correct way to implement an NSPersistentStore subclass.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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: 
 >On NSPersistentStore Modeling (From: Daryle Walker <email@hidden>)

  • Prev by Date: On NSPersistentStore Modeling
  • Next by Date: Re: On NSIncrementalStore UUID Uniqueness
  • Previous by thread: On NSPersistentStore Modeling
  • Next by thread: Refreshing Cocoa Bindings
  • Index(es):
    • Date
    • Thread