Re: Newbie Problem with KVC compliance
Re: Newbie Problem with KVC compliance
- Subject: Re: Newbie Problem with KVC compliance
- From: Scott Stevenson <email@hidden>
- Date: Thu, 26 Oct 2006 14:27:50 -0700
On Oct 26, 2006, at 10:22 AM, shaun bear wrote:
I want to create an instance of the Orders class and the set value
for an attribute: message. It compiles OK but when I run it and
click the button I get the following message: "...<Orders 0x3a9270>
setValue:forUndefinedKey:]: this class is not key value coding-
compliant for the key message. "
You don't want to just alloc/init Managed Objects. They need to be
connected to a Managed Object Context to be useful. You want to do a
bit more reading on Core Data first to save yourself some confusion.
Take a look at NSEntityDescription's
+insertNewObjectForEntityForName:inManagedObjectContext.
http://cocoadevcentral.com/articles/000086.php#4
- Scott
_______________________________________________
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