re: whether to use core data...
re: whether to use core data...
- Subject: re: whether to use core data...
- From: Ben Trumbull <email@hidden>
- Date: Mon, 5 Oct 2009 19:30:10 -0400
But the Core Data documentation starts like this:
...
Core Data is not an entry-level technology.
...
You should not simply try to read [The Core Data Programming Guide]
straight through to understand Core Data.
...
Do not attempt the NSPersistentDocument Core Data Tutorial unless or
until you also understand Cocoa bindings.
...
Although Cocoa bindings and Core Data are independent and address
different issues, both provide abstraction layers that˜while
individually they are reasonably straightforward to grasp˜can be
challenging to master simultaneously.
Bloody hell!
WARNING! Do not even ATTEMPT the NSPersistentDocument Core Data
Tutorial! Your very MIND is in MORTAL DANDER!
Ironically, the "Low level Persistent Store" tutorial was a lot easier
for people new to Cocoa. I believe it's been replaced by <http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CoreDataUtilityTutorial/Articles/00_introduction.html
>
The warning is a touch harsh. Still, it's there because the Core Data
abstractions are built on top of the other foundational Cocoa
elements. If you don't get KeyValueCoding, you're going to be lost.
It wouldn't be doing you any favors to suggest otherwise. Ditto for
Cocoa collection classes, KVO, and NSNotificationCenter.
The NSPersistentDocument tutorial is more difficult because it's at
the intersection of several different technologies. NSDocument from
AppKit, Cocoa Bindings, and Core Data. So that's learning 3 separate
things at once, and it's rarely clear to people new to Cocoa where
those technologies intersect, and where they are distinct. It'd be
like learning how to whistle, juggle, and snap all at once. Could
you ? Sure. But experience has demonstrated it's easier and
significantly less frustrating to learn them separately.
Or put another way, some of the tutorials are intended for advanced
Cocoa developers new to Core Data, not developers new to Cocoa. Try
the Core Data Utility Tutorial. It's a CLI, so you don't have to get
wrapped up in NSViews or Cocoa Bindings as you experiment with Core
Data.
- Ben
_______________________________________________
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