Re: mogenerator and key path error
Re: mogenerator and key path error
- Subject: Re: mogenerator and key path error
- From: Quincey Morris <email@hidden>
- Date: Tue, 27 Mar 2012 12:17:54 -0700
On Mar 27, 2012, at 11:56 , Ayers, Joseph wrote:
> 2012-03-27 14:39:38.533 Roboplasm[74089:403] Cocoa Bindings: Error accessing value for key path tapes of object <AppDelegate: 0x7fe355906e20> (from bound object <TapesController: 0x7fe353e10d10>[entity: tapes, number of selected objects: 0]): [<AppDelegate 0x7fe355906e20> valueForUndefinedKey:]: this class is not key value coding-compliant for the key tapes.
Look at the error message. It still says that the entity name for a TapesController is "tapes". Is there another TapesController? OTOH, it might not really matter what the entity name is set to, if you're not actually having TapesController create any objects for you.
However, there's another problem, which I didn't notice before. Your app delegate really *isn't* KVC compliant for property "tapes":
On Mar 27, 2012, at 11:12 , Ayers, Joseph wrote:
> I declare an instance tapes in AppDelegate.h as:
> @property (nonatomic, retain) Tapes * tapes;
> and in AppDelegate.m as
> @dynamic tapes;
Your app delegate isn't a Core Data object, so Core Data isn't going to provide the "tapes" property for you, as you promise with '@dynamic tapes'. You need to '@synthesize tapes', or write the getter/setter yourself.
_______________________________________________
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