• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
to-Some Relationship (Core Data/IB questions)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: NSView out of memory problem (From: Matthew Whillock <email@hidden>)
 >Re: NSView out of memory problem (From: Graham Cox <email@hidden>)
 >Re: NSView out of memory problem (From: Matthew Whillock <email@hidden>)

  • Prev by Date: Untitled NSPersistentDocument has no persistent store
  • Next by Date: Re: NSView out of memory problem
  • Previous by thread: Re: NSView out of memory problem
  • Next by thread: Re: NSView out of memory problem
  • Index(es):
    • Date
    • Thread