• 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
NSManagedObjectContext won't save...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSManagedObjectContext won't save...
      • From: Matthew Firlik <email@hidden>
  • Prev by Date: Re: Find color's change in a NSString (attributed)
  • Next by Date: Re: Sorting array of strings by string length
  • Previous by thread: Re: COM programming in Mac
  • Next by thread: Re: NSManagedObjectContext won't save...
  • Index(es):
    • Date
    • Thread