this class is not key value coding-compliant ...
this class is not key value coding-compliant ...
- Subject: this class is not key value coding-compliant ...
- From: Ken Tozier <email@hidden>
- Date: Sun, 18 Jan 2009 10:02:29 -0500
Hi
I'm getting the runtime error "this class is not key value coding-
compliant for the key rootArray." for my app controller class, despite
the fact that the controller absolutely, positively does have a
"rootArray" accessor and that accessor is defined in both the
interface and implementation files. Why can't the bindings mechanism
see this accessor?
Here's the relevant code:
@interface AppController : NSObject
{
PMXAdminModel *model;
PMXAdminController *controller;
}
- (NSArray *) rootArray;
@end
@implementation AppController
- (void) awakeFromNib
{
model = [[PMXAdminModel alloc] init];
controller = [[PMXAdminController alloc] init];
NSLog(@"model: %@", model);
NSLog(@"controller: %@", controller);
}
- (NSArray *) rootArray
{
return [model rootArray];
}
@end
Here are the bindings:
The content of an NSArrayController inside the "PMXAdmin.nib" is bound
to Application-> rootArray
Anyone see the problem?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden