CoreData sub-classing
CoreData sub-classing
- Subject: CoreData sub-classing
- From: Steve Israelson <email@hidden>
- Date: Fri, 8 Jun 2007 13:54:46 -0700
I have a CoreData Entity of, say, GraphicObject. It has several sub-
class entities in the data model of Circle and Square.
Now, I want to make an Objective-C subclass of GraphicObject to cache
the graphic image.
In the data model editor I set the class of GraphicObject to my
Objective-C class.
Circle and Square are still set to the class of ManagedObject.
In my code when I add Circle or Square entities to the context, I get
an exception of them being the wrong class.
So, hmm, I set their class to my Objective-C too.
I still get exceptions thrown.
So, my question is, HOW do I have a data model that uses inheritance
and is also implemented using custom classes in Objective-C?
_______________________________________________
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