• 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:42:23 -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
_______________________________________________

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: Core Data bindings question
  • Next by Date: UILabel contentView is 'left' out of IB but the default should be 'redraw'
  • Previous by thread: Re: Core Data bindings question
  • Next by thread: UILabel contentView is 'left' out of IB but the default should be 'redraw'
  • Index(es):
    • Date
    • Thread