Warning: critical Core Data documentation flaw
Warning: critical Core Data documentation flaw
- Subject: Warning: critical Core Data documentation flaw
- From: Larry Gerndt <email@hidden>
- Date: Mon, 13 Jun 2005 00:53:22 -0700
In the "Data Modeling Guide", the article "Creating a Managed Object
Model Using XCode" has a serious flaw. In its example, It directs
you to change the Class of the Employee and Department entities from
their default class (NSManagedObject) to class Employee and class
Department, respectively. This will make them unusable. The class
of a managed object must be a kind of NSManagedObject.
This bit me because having read this first, I then went to build and
run the example "Introduction to NSPersistentDocument Core Data
Tutorial" and while it doesn't say to do that there, it also doesn't
show the tables where those things are defined, so I didn't know any
better and followed my previous directions. As such, when I build and
run, the "Add" button resulted in a "failed to create object"
exception. This stumped me for about 20 minutes. A visit to Cocoa
Builder revealed a lengthy dicussion about how the class of Entities
MUST be a kind of NSManagedObeject, so i changed it to that, and now
it works.
Hopefully this will spare someone the head scratching.
--
Larry Gerndt
AIM Handle: SonOfTheSonOfMan
Let the truth be told though the heavens fall -- James Garrison
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden