• 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 application types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data application types


  • Subject: Re: Core Data application types
  • From: mmalc crawford <email@hidden>
  • Date: Fri, 18 May 2007 11:25:17 -0700


On May 18, 2007, at 9:57 AM, MH wrote:
I'm making the mistake of trying to run 2 applications.

The issue that gave rise to the error you showed earlier is that you set the Class of the array controller to NSApplication, so it was presumably trying to create additional instances thereof...

1. There is the library store
2. Is the individual document that is bound to it that can also update
its content.
It seems to me that 2 models and 2 managedContexts are needed for this
type of thing, but I'm a not quite sure how to go about it.

Probably the easiest approach is to create two models, each with a configuration that includes all the entities they contain.
You then merge the models, but ensure that you create stores using the appropriate configuration.


I thought that core data automatically aggregated the various
.xcdatamodels at runtime, which to my mind would be confusing the
issue, but I'm probably mistaken.

NSPersistentDocument aggregates models by default.

mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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 application types (From: "Mark Hill" <email@hidden>)
 >Re: Core Data application types (From: mmalc crawford <email@hidden>)
 >Re: Core Data application types (From: MH <email@hidden>)

  • Prev by Date: Re: Core Data application types
  • Next by Date: Re: Core Data application types
  • Previous by thread: Re: Core Data application types
  • Next by thread: Re: Core Data application types
  • Index(es):
    • Date
    • Thread