Core Data Entity Relationship -valueForKeyPath: question
Core Data Entity Relationship -valueForKeyPath: question
- Subject: Core Data Entity Relationship -valueForKeyPath: question
- From: Jamie Phelps <email@hidden>
- Date: Mon, 30 Jun 2008 21:01:27 -0500
I have a Core Data entity Item with a relationship
"transaction." (It's actually a to-many relationship. I'll adjust the
key when I migrate my Core Data model.) My question is about KVC. Can
anyone help me understand why the following code always returns YES? I
know for a fact that some of my Item objects should return NO for this.
-(BOOL)sold{
return ([self valueForKeyPath:@"transaction.@count"] > 0);
}
Thanks in advance!
Jamie
_______________________________________________
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