• 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
Copying records from to-many relationship in Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Copying records from to-many relationship in Core Data


  • Subject: Copying records from to-many relationship in Core Data
  • From: Sean Kline <email@hidden>
  • Date: Sat, 29 Aug 2009 16:50:19 -0400

Folks,
I have a Core Data application with two entities (relevant to this question)
with a to-many relationship between them.  When I create a new record in
Entity 1, I would like to copy the to-many records from Entity 2 from that
last record created into the new record.  I tried to execute a fetch into an
array, but whenever I do this the table that is bound to Entity 1 displays
two records.  There may be something bizarre that I have done causing this
behavior, but does anyone have any general advice or examples to help me
achieve what I am trying to do?

Thanks,

- S
_______________________________________________

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

  • Prev by Date: virtual ivars
  • Next by Date: Re: "Format not a string literal and no format arguments"
  • Previous by thread: Re: virtual ivars
  • Next by thread: Getting managedObject Context
  • Index(es):
    • Date
    • Thread