FROM : mmalc crawford
DATE : Sun Jun 01 16:48:41 2008
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
DATE : Sun Jun 01 16:48:41 2008
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
| Related mails | Author | Date |
|---|---|---|
| Steven Hamilton | Jun 1, 10:28 | |
| Steven Hamilton | Jun 1, 10:48 | |
| mmalc crawford | Jun 1, 16:48 | |
| Steven Hamilton | Jun 2, 10:52 |






Cocoa mail archive

