Skip navigation.
 
mlto-Some Relationship (Core Data/IB questions)
FROM : Ian Jackson
DATE : Wed Apr 02 10:45:41 2008

Following on from a previous question (Core Data/IB questions), I am 
seeking advice again on how I should accomplish the following:

I need to select an arbitrary number (i.e. not necessarily 1 or all) 
of objects from a set of all objects belonging to another entity. I 
assumed this was a job for a to-many relationship, but I can't see how 
to use a to-many relationship, without having all the objects in the 
related entity included.

So will I need to write my own code to select objects via a to-one 
relationship, and add them to an array one by one? I guess the array 
would have to become a kind of property of the entity which is 
choosing from the relationship.

The point of this is to have a store of objects in the second entity, 
which can be picked from by objects of the second entity as needed.

I'd appreciate any advice, thank you.

Ian.

Related mailsAuthorDate
No related mails found.