Quincey, thank you
the colums is bound with Value, transaction.transactiontype.name
the combo box is content bound to a array controller that manages the
items i want to choose from in the combo box. as content values
(transactionTypes) name.
I did not know about the content binding.
how should i go about this... ?
On 13-Aug-08, at 5:24 PM, Quincey Morris wrote:
On Aug 12, 2008, at 20:10, Sandro Noel wrote:
I have these entities, with these attributes and relationships.
entity: Transactions
attributes: field1, field2
relationship : transactionType
entity: TransactionTypes
attributes: field1, field2
relationship : transaction
In interface builder I have two array controller bound to these
entities,
the tableview columns are bound to the field1 and field2 and
transactionType
the transaction type is bound to a column in the table view with
the keypath, transactionType.field1
witch displays the name of the transaction type properly.
if i set it to just transactionType, i get a crash, i guess because
it's a relationship...
now, in the transactionType column the cell is a combo box, bound
to transactionTypes array. witch gives me
a drop down list of all the transaction Types available.
the problem i get is that if i select a value from that list,
all the transactions that were of the same type of the one i am
trying ti change
get changed as well, not just the one row I am trying to change.
So let's say i have 15 transactions of type DEBIT and i change the
first one ot CREDIT, all the 14 other ones get changed along with
it....
When the column's cell is a combo box cell, the column has 3
bindings instead of 1 (content, contentValues and value). What are
your bindings set to?. It's not going to work properly unless you
you set all 3 bindings properly.
Also, make sure you set the bindings of the column, not the cell.
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/sandro.noel%40mac.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]