• 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
this class is not key value coding-compliant ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: this class is not key value coding-compliant ...
      • From: glenn andreas <email@hidden>
    • Re: this class is not key value coding-compliant ...
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: real noob question
  • Next by Date: Re: this class is not key value coding-compliant ...
  • Previous by thread: Re: Create App both for Tiger and Leopard
  • Next by thread: Re: this class is not key value coding-compliant ...
  • Index(es):
    • Date
    • Thread