• 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
Re: Problem using my own managed object context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Problem using my own managed object context
      • From: Gideon King <email@hidden>
References: 
 >Problem using my own managed object context (From: Gideon King <email@hidden>)

  • Prev by Date: Re: Debugging (apparently) random retain loop bug (NSArrayController)
  • Next by Date: Re: Problem using my own managed object context
  • Previous by thread: Problem using my own managed object context
  • Next by thread: Re: Problem using my own managed object context
  • Index(es):
    • Date
    • Thread