Subclassing NSManagedObject issue
Subclassing NSManagedObject issue
- Subject: Subclassing NSManagedObject issue
- From: T Reaves <email@hidden>
- Date: Sun, 22 May 2005 20:50:20 -0400
O.K., as per advice from people, I've subclassed NSManagedObject
for my entities. My first step was to simply make the change to the
model, and create the source files. As I've not added accessors &
mutators, or other logic, these are just empty files that inherit the
default behavior.
My understanding from the documentation and the sample code I
looked at implies all I need do is what I've done. However, when I
run my app (at this point I've no real data, so I deleted the XML
data file), the object I've subclassed from NSManagedObject no longer
works. When I try to add (via the array controller), I now get:
*** NSRunLoop ignoring exception 'Failed to create new object' that
raised during posting of delayed perform with target 4916980 and
selector 'invokeWithTarget:'
Once I've updated the class of my entity in the modeler, created
the .h & .m files for the new objects, is there anything else? I've
looked over the docs and the example code, and all seems in order...
_______________________________________________
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