Re: Uncaught Exception: NSUnknownKeyException

2012-03-14 Thread Stefan Miller
On Mar 9, 2012, at 1:35 AM, Graham Cox wrote: > > The key is nil (null). So the problem is where the key is coming from, not > the operation of the Action class. > You could try overriding setValue:forUndefinedKey: (see NSKeyValueCoding Protocol Reference) in your Action class and set a break

Re: Uncaught Exception: NSUnknownKeyException

2012-03-09 Thread Erik Stainsby
You can specify them in IB Don. In the tree of XIB elements (under the Objects header) locate and select the Table Column element. I the Identity Inspector the second heading reads User Interface Item Identifier. Set this to the column id you wish to use in your code (the variable name perhaps)

Re: Uncaught Exception: NSUnknownKeyException

2012-03-09 Thread Donald Hall
Thanks to Mike and Graham for the replies. I think I figured out where the problem was. I am putting data into an NSTableView, with one ivar from the Action class in each column. My original project was so old that it used nibs instead of xibs, so I redid them all. In the new Xcode there doesn'

Re: Uncaught Exception: NSUnknownKeyException

2012-03-09 Thread Graham Cox
On 09/03/2012, at 5:57 PM, Donald Hall wrote: > s class is not key value coding-compliant for the key (null). The key is nil (null). So the problem is where the key is coming from, not the operation of the Action class. --Graham ___ Cocoa-dev maili

Re: Uncaught Exception: NSUnknownKeyException

2012-03-08 Thread Mike Abdullah
Got a stack trace? Sent from my iPad On 9 Mar 2012, at 06:57 AM, Donald Hall wrote: > Does anyone have any idea what might be wrong if I am getting this exception: > > Uncaught Exception: > NSUnknownKeyException > [ valueForUndefinedKey:]: this class is not key value > co

Uncaught Exception: NSUnknownKeyException

2012-03-08 Thread Donald Hall
Does anyone have any idea what might be wrong if I am getting this exception: Uncaught Exception: NSUnknownKeyException [ valueForUndefinedKey:]: this class is not key value coding-compliant for the key (null). Action is one of my classes. I am upgrading an old project for Lion. The present