• 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
Re: Core data. Programmatically setting relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core data. Programmatically setting relationships


  • Subject: Re: Core data. Programmatically setting relationships
  • From: mmalc crawford <email@hidden>
  • Date: Sun, 01 Jun 2008 07:48:41 -0700


On Jun 1, 2008, at 1:28 AM, Steven Hamilton wrote:

What I can't do is set change the relationships. In my tableView I'm displaying the Account name in the toAccount and fromAccount columns. I want to be able to type a new Account.name in there and have the Transaction object update the relationship to the new Account accordingly. Reading the core data docs I can't for the life of me figure out how to do this. I believe I need to take the name from the tableColumn, figure out which account it belongs to then somehow set that as the relationship by using KVC.

The documentation explains how to manipulate relationships here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdUsingMOs.html#//apple_ref/doc/uid/TP40001803-212651 >


Other than that, it's not clear what you're trying to achieve.
"I want to be able to type a new Account.name in there" -- type in where? What transaction are you trying to update? How would you have done this if you weren't using Core Data?


mmalc

_______________________________________________

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


  • Follow-Ups:
    • Re: Core data. Programmatically setting relationships
      • From: Steven Hamilton <email@hidden>
References: 
 >Core data. Programmatically setting relationships (From: Steven Hamilton <email@hidden>)

  • Prev by Date: Re: Leak when animating Core Animation Superlayer
  • Next by Date: Re: NSPredicate: To be, or not to be
  • Previous by thread: Re: Core data. Programmatically setting relationships
  • Next by thread: Re: Core data. Programmatically setting relationships
  • Index(es):
    • Date
    • Thread