Re: Core Data getting many data from relationship.
Re: Core Data getting many data from relationship.
- Subject: Re: Core Data getting many data from relationship.
- From: mmalc crawford <email@hidden>
- Date: Fri, 6 Oct 2006 14:00:57 -0700
On Oct 6, 2006, at 1:28 PM, David Alter wrote:
I want to get the many data for a given relationship. Lets say I
have a Department and I want to get all its Employees. Department
has a relationship called employees. Is this what I do?
id result = [aDepertment valueForKey:@"employees"];
What do I get back? Is it an array, a set, or some other kind of
container?
Should I be using mutableArrayValueForKey from NSKeyValueCoding
protocal?
I have been reading the Core Data docs and all the examples show
situations that return only one object.
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdFAQ.html#//apple_ref/doc/uid/TP40001802-242985
>
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdRelationships.html#//apple_ref/doc/uid/TP40001857-SW3
>
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden