• 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: Newbie Problem with KVC compliance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Newbie Problem with KVC compliance (From: shaun bear <email@hidden>)

  • Prev by Date: Programmatically show NSPopUpButton menu?
  • Next by Date: Re: NSTimer question: How to fire at second 00, 05, 10 etc ?
  • Previous by thread: Newbie Problem with KVC compliance
  • Next by thread: Re: Newbie Problem with KVC compliance
  • Index(es):
    • Date
    • Thread