How do I track down the source of a KVC exception: this class is not key value coding-compliant for

Posted by sam on Stack Overflow See other posts from Stack Overflow or by sam
Published on 2010-04-29T21:07:27Z Indexed on 2010/04/30 3:37 UTC
Read the original article Hit count: 512

I get this error when I try to run my app:

2010-04-29 13:49:01.355 MyApp[56123:207] *** Terminating app due to uncaught
exception 'NSUnknownKeyException', reason: '[<MyViewController 0x5112b10>
setValue:forUndefinedKey:]: this class is not key value coding-compliant for 
the key toolbar.'

MyViewController used to have an IBOutlet called 'toolbar' that connected to a UIToolbar object in a nib. I decided I no longer needed the toolbar or the nib so I removed them from the project. But Xcode seems to still want to refer to 'toolbar'.

Where might the reference to toolbar be if I no longer use a nib? I can synthesize a dummy 'toolbar' property to appease Xcode, but I want to avoid this kind of ugly hack.

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about cocoa-touch