• 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, 22 Dec 2005 15:23:06 -0800

On Dec 15, 2005, at 5:38 PM, Dave Hayden wrote:

On Dec 8, 2005, at 5:17 PM, Miguel Sanchez wrote:

Strange, the calling setSubentities should only modify the structure of the model before it's actually used to load data. Yet you say that you get an infinite recursion while creating the DB, which would be another step. Are you still having this problem? If so, could you please file a bug or send a sample backtrace.

And sorry, we don't have an example for this, but modifying the model in code should work as long as the result is a logical and correct model.

Just to follow up, I've tried to reproduce this but haven't had the same results. I tossed the original source after I decided to take a different tack, assuming that I was doing something fundamentally wrong. The only thing odd I remember was that when I looked at the model in gdb, it showed that the entity in the parent's subentity list had the parent set properly, but when shown in the top-level list, its parent was (null). Now, of course, it seems to work as advertised.

If I run into this again (or any other oddness) I'll be sure to make a copy of the project.

Alright, got it crashing again. It has something to do with replacing the superentity of objects loaded from models in bundles--the really weird thing is it doesn't happen unless you call -[NSBundle principalClass]. It also doesn't happen when the entity classes are NSManagedObject. I've filed this to bugreporter, #4391292, with code showing the crash.

-D

_______________________________________________
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
References: 
 >Re: CoreData, inheritance and plug-ins (From: Dave Hayden <email@hidden>)
 >Re: CoreData, inheritance and plug-ins (From: Miguel Sanchez <email@hidden>)
 >Re: CoreData, inheritance and plug-ins (From: Dave Hayden <email@hidden>)

  • Prev by Date: stringByReplacingPercentEscapesUsingEncoding question
  • Next by Date: Re: The simplest recorder
  • Previous by thread: Re: CoreData, inheritance and plug-ins
  • Next by thread: Implementing image pre-caching in a multi-threaded app.
  • Index(es):
    • Date
    • Thread