• 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
Question about multiple MOCs on shared PSC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about multiple MOCs on shared PSC


  • Subject: Question about multiple MOCs on shared PSC
  • From: Rick Mann <email@hidden>
  • Date: Mon, 4 Jan 2010 20:12:48 -0800

So, I thought I could create a new NSManagedObjectContext given the NSPersistentStoreCoordinator of a different MOC, and that it would be a completely blank context. But it turns out fetches for objects will fetch anything out of the store(s). This makes sense, but isn't what I wanted. I really wanted to have to create all new objects in the new MOC, and then add those to the store, and otherwise treat the MOC as if it were a blank slate (i.e., do fetches, etc and not have any problems).

So, it looks like I need to create a new standalone MOC, and then manually integrate the changes back into the old one. Before I proceed with that, can anyone tell me if that's not the case?

TIA!
Rick

P.S. It may not be as bad as all that; I may be able to do what I need to with no Fetches done in the MOC.

--
Rick

_______________________________________________

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

  • Prev by Date: Re: Looking up a NSString constant at runtime
  • Next by Date: Re: Looking up a NSString constant at runtime
  • Previous by thread: [MEET] Toronto Area Cocoa & WebObjects Developer Group - January 26
  • Next by thread: NSViewController view swapping where to put the buttons at?
  • Index(es):
    • Date
    • Thread