• 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
OK to share managed object model across MOCs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OK to share managed object model across MOCs?


  • Subject: OK to share managed object model across MOCs?
  • From: Marc Respass <email@hidden>
  • Date: Tue, 08 Feb 2011 09:37:51 -0500

Hi all,

I have an NSDocument based application and each document has its own core data stack (NSPersistentDocument is inappropriate for my application). Each document gets its own model, store coordinator, and object context. It occurred to me that the model is the same model for each document so I could turn it into a static local that is loaded once and used by each document rather than an instance variable created each time. It works just fine but I'd like to get some other opinions. Anyone see anything wrong with that?

Thanks a lot
Marc
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Silently failure to link Good-looking dylib
  • Next by Date: Re: OK to share managed object model across MOCs?
  • Previous by thread: Re: Very long "Check Dependencies" phase
  • Next by thread: Re: OK to share managed object model across MOCs?
  • Index(es):
    • Date
    • Thread