NSManagedObjectContext won't save...
NSManagedObjectContext won't save...
- Subject: NSManagedObjectContext won't save...
- From: Jean Le Clerc <email@hidden>
- Date: Tue, 21 Feb 2006 08:56:15 -0500
Hi!
I have this very strange problem where a ManagedObjectContext won't
save... Here's a brief explanation of the setup:
NSManagedObject
-> SBManagedObject
-> SBAccountableObject (Abstract)
-> SBEntityObject (Abstract)
-> SBDataSource
SBEntityObject has a mandatory string property called
"entityObjectName". In my test case, I create a MOC stack, add a new
SBDataSource (with NSEntityDescription's
"insertNewObjectForEntityForName:inManagedObjectContext"). The data
source's "entityObjectName is set in the "awakeFromInsert" method in
my SBDataSource's class definition. Up to that point, everything
works fine. Then I try to save the ManagedObjectContext and the
applicaiton goes into an infinite loop. I have overriden
"validateForInsert:" in my SBDataSource class, and the log shows that
this is called over and over; this might very well be a symptom only,
as I do not know exactly what method loops forever.
As anyone ever seen this? Any ideas what might be causing it? Any
idea how I could debug this??
Any help would be greatly appreciated!
Thanks!
Jean Le Clerc
Logiciels Malus Softwares
email@hidden
http://www.malus.ca/
blog: http://eboud.blogspot.com/
_______________________________________________
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