I'm trying to get a grip on bindings and have set up a CPWindow with a CPTextView in xcode and bound the window and the textview to their respective outlets.
I'm getting a bit stuck however trying to make the textview display the _xmlContent
. I've set the binding in xcode to "delegate" and the key path to xmlContent
(also tried self.xmlContent
and _xmlContent and all variations thereof that I could think of).
@import <Foundation/Foundation.j>
@import <AppKit/AppKit.j>
@implementation AppController : CPObject
{
@outlet CPWindow theWindow;
@outlet CPTextView codeView;
CPString _xmlContent @accessors(property=xmlContent);
}
// ...
@end
The message I'm getting now is:
CPUndefinedKeyException: <AppController 0x00a177> is not key value coding-compliant for the key xmlContent
How do I make my AppController key value coding compliant for the key "xmlContent"?