• 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: CoreData, inheritance and plug-ins
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData, inheritance and plug-ins


  • Subject: Re: CoreData, inheritance and plug-ins
  • From: Dave Hayden <email@hidden>
  • Date: Thu, 1 Dec 2005 18:54:36 -0800

On Nov 10, 2005, at 3:55 PM, Miguel Sanchez wrote:

two things:

+ the original post might have been asking if the modelByMergingModels would automatically do the parent-child hookup of the entities. If this was the question, the answer is no. You won't be able to declare the parent of a class within the modeling tool if that parent isn't in the same model you're editing. You'll have to figure out a way of encoding this parent dependency, either by creating a dummy parent class that get swiped for the real one, or putting the name of the parent in the user info of the entity. In any case, you'll need to have code that tweaks your child model by

- calling modelByMergingModels
- and then setting the parent-child relationships in the resulting model

Hey there, just a late reply to this as I'm digging through the archives. Setting parents across models with -[NSEntityDescription setSubentities:] doesn't seem to work for me at all with a SQLite store--it goes into an endless recursion trying to create the database.

Is there example code anywhere that shows this working?

Thanks,
-Dave
Panic, Inc.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: CoreData, inheritance and plug-ins
      • From: Miguel Sanchez <email@hidden>
  • Prev by Date: NSBrowser image bindings
  • Next by Date: Re: Is Apple's singleton sample code correct?
  • Previous by thread: NSBrowser image bindings
  • Next by thread: Re: CoreData, inheritance and plug-ins
  • Index(es):
    • Date
    • Thread