• 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: window controllers and managed object contexts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >window controllers and managed object contexts (From: Daniel Child <email@hidden>)
 >Re: window controllers and managed object contexts (From: "Kyle Sluder" <email@hidden>)
 >Re: window controllers and managed object contexts (From: Daniel Child <email@hidden>)

  • Prev by Date: Re: showing window causes EXC_BAD_ACCESS
  • Next by Date: Re: CALayers inside NSSplitView (clipping issue) [SOLVED]
  • Previous by thread: Re: window controllers and managed object contexts
  • Next by thread: Changing slide back destination during drag
  • Index(es):
    • Date
    • Thread