• 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: Managed Object Context Reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Managed Object Context Reference


  • Subject: Re: Managed Object Context Reference
  • From: Richard Somers <email@hidden>
  • Date: Mon, 31 May 2010 23:28:06 -0600

On May 31, 2010, at 3:40 PM, Joanna Carter wrote:

Normally, I find it easier to write read-only, lazy instantiating, properties for the Persistent Store Coordinator, MOM and MOC, in the Controller., Then it is easy to bind any objects in the NIB, that require the MOC.

Yes, I agree. My File's Owner is a NSPersistentDocument subclass. The nib has an object controller and an array controller both of which are bound to the File's Owner managedObjectContext.


It would be unusual to have a MOC directly connected to a View. They are normally connected to array or object controllers in the controller.

The nib contains a custom view with custom programmatic bindings. The bindings need a reference to the moc.


--Richard

_______________________________________________

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


References: 
 >Managed Object Context Reference (From: Richard Somers <email@hidden>)
 >Re: Managed Object Context Reference (From: Joanna Carter <email@hidden>)

  • Prev by Date: Re: Managed Object Context Reference
  • Next by Date: Re: UTI strings
  • Previous by thread: Re: Managed Object Context Reference
  • Next by thread: Re: Managed Object Context Reference
  • Index(es):
    • Date
    • Thread