Re: window controllers and managed object contexts
Re: window controllers and managed object contexts
- Subject: Re: window controllers and managed object contexts
- From: mmalc crawford <email@hidden>
- Date: Sat, 27 Sep 2008 10:17:32 -0700
On Sep 27, 2008, at 10:01 AM, Daniel Child wrote:
but the tutorial online uses plain accessors (with the local copy of
MOC as an ivar, not a property) ... and works. One difference is
that their's is a doc-based CoreData app, and mine is not. But I
don't see why that should matter....
It matters because NSPersistentDocument has a managed object context
instance variable.
See the note at <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdBeforeYouStart.html
>
"Core Data is not an entry-level technology. It leverages many other
Cocoa technologies, including memory management, key-value coding, and
key-value observing. You must understand these technologies to use
Core Data effectively. You also need a solid understanding of data
modeling and the model-view-controller design pattern as it pertains
to Cocoa."
If you don't understand this basic point, you should not yet be using
Core Data.
mmalc
_______________________________________________
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