Re: Problem using my own managed object context
Re: Problem using my own managed object context
- Subject: Re: Problem using my own managed object context
- From: Jerry Krinock <email@hidden>
- Date: Sun, 7 Feb 2010 20:41:28 -0800
On 2010 Feb 07, at 15:42, Gideon King wrote:
> So I think maybe there is a problem with me using my own custom managed object context in this way, and perhaps when it migrates the persistent store, maybe somewhere there it reverts to a standard managed object context or something.
>
> Does this sound like a likely scenario?
Yup. From NSManagedObjectContext documentation:
"You are strongly discouraged from subclassing NSManagedObjectContext. The change tracking and undo management mechanisms are highly optimized and hence intricate and delicate. Interposing your own additional logic that might impact processPendingChanges can have unforeseen consequences. In situations such as store migration, Core Data will create instances of NSManagedObjectContext for its own use..."
Better revisit why you thought it was necessary to subclass NSManagedObjectContext.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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