• 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
... "Copy" Managed Object in Core Data ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

... "Copy" Managed Object in Core Data ...


  • Subject: ... "Copy" Managed Object in Core Data ...
  • From: Peter Sampson <email@hidden>
  • Date: Sat, 26 Nov 2005 21:15:23 -1000

Hello Everyone,

I've been lurking and learning from this list for a long time, and I feel indebted to you all who have contributed so much! Thanks.

Regarding accessing properties in Core Data:

I have two Entities in a tools lending library application: tools and loanout.

The tools entity contains a toolname, code, and tooldescription property.

The loanout entity has a toolname, code, and tooldescription and daysout property.

Basically, I want to input a code in the loanout entity, and it will lookup the toolname and tooldescription from the "tools" entity and COPY that data into the "loanout" entity. (It can't be fetched or a basic relationship value, because once the data is copied, it should remain permanent. ie. if I change the screwdriver to a hammer in the tools entity, it should not change all other screwdrivers in loanout. Neither should it delete them.)

I've tried doing it via model key path in bindings, and no luck.

Also, how do you have the related data copied -- once the tools code is entered, it copies the data from the tool entity and places it in loanout.

Can you do this in the bindings palette, or does it require setting the value with a valueforkey: invocation?

Cheers,

Peter

_______________________________________________
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


  • Prev by Date: Re: How to use CoreData with multiple threads and ManagedObjectContexts
  • Next by Date: Re: How to use CoreData with multiple threads and ManagedObjectContexts
  • Previous by thread: Re: How to use CoreData with multiple threads and ManagedObjectContexts
  • Next by thread: Problems with NSOpenGLView in a Scroll View.
  • Index(es):
    • Date
    • Thread