• 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
NSTableDataSource and Key-value Coding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableDataSource and Key-value Coding


  • Subject: NSTableDataSource and Key-value Coding
  • From: Randy Bradley <email@hidden>
  • Date: Mon, 14 Mar 2005 14:20:23 -0600

Hi All,

I'm adding a couple of NSTableViews to my application and I'm having some difficulties. I'm currently reading Aaron Hillegass's "Cocoa Programming for Mac OS X" First Edition. I'm a random access reader so I may have missed a crucial tidbit somewhere, but I'm pretty much building from his example in chapter 5.

So, my application compiles fine but I get the following run time errors:


2005-03-14 13:43:36.097 Weights[1081] [<Animal 0x345880> valueForUndefinedKey:]: this class is not key value coding-compliant for the key (null).
*** malloc[1081]: Deallocation of a pointer not malloced: 0xbfffe130; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
*** malloc[1081]: Deallocation of a pointer not malloced: 0xbfffe2a0; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug

I set an identifier for each column in Interface Builder with the same name as the instance variables in my class.
My document window doesn't show up until I switch to another application, then back to my application. Then the document window shows up with the data in the table, however, I cannot select rows or click buttons elsewhere in the window.

Do I need to do something to make my "Animal" object key-value coding compliant?

Thanks for any ideas,

Randy
 _______________________________________________
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

  • Follow-Ups:
    • Re: NSTableDataSource and Key-value Coding
      • From: Randy Bradley <email@hidden>
  • Prev by Date: AddressBook records outside AB
  • Next by Date: Re: multidimensional arrays
  • Previous by thread: AddressBook records outside AB
  • Next by thread: Re: NSTableDataSource and Key-value Coding
  • Index(es):
    • Date
    • Thread