to-Some Relationship (Core Data/IB questions)
to-Some Relationship (Core Data/IB questions)
- Subject: to-Some Relationship (Core Data/IB questions)
- From: Ian Jackson <email@hidden>
- Date: Wed, 2 Apr 2008 21:45:41 +1300
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.
_______________________________________________
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