Re: NSTableView and Bindings
Re: NSTableView and Bindings
- Subject: Re: NSTableView and Bindings
- From: David Gardener <email@hidden>
- Date: Sat, 26 Mar 2005 00:27:09 -0700
Thanks mmalc,
That's what I ended up doing to replace the value of column3. I used (column1 + column2) in the methods. One of my question is: the
sum of column3 (@sum.column3) goes into a textField outside of the tableView. And that is no problem getting it using bindings (does not require setters or getters methods). How do I use, or what methods do I need, to get the value "@sum.column3", now in the textFiled , into another calculation. eg. to add that value to another textfield value and place the total result in a new textField????. Also if you change a value in one of the tableView rows, the value @sum.column3 in textfield will only update when you add or delete a row in the tableView. How do you get the values to update without adding or deleting rows.??????
On Mar 25, 2005, at 3:51 PM, mmalcolm crawford wrote:
On Mar 25, 2005, at 2:21 PM, David Gardener wrote:
//The value for this Init goes into a textField. Not sure if I can use @sum.column3 as an object in the array??
No, you can't...
[Column setKeys;
[NSArray arrayWithObjects:@"column5",@"@sum.column3",nil]
triggerChangeNotificationsForDependentKey:@"column6"];
Why not just:
[Column setKeys;
[NSArray arrayWithObjects:@"column5",@"column1",@"column2",nil]
triggerChangeNotificationsForDependentKey:@"column6"];
?
mmalc
_______________________________________________
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
_______________________________________________
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