Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSManagedObjectContext won't save...



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.