NSTableView and Bindings
NSTableView and Bindings
- Subject: NSTableView and Bindings
- From: David Gardener <email@hidden>
- Date: Wed, 23 Mar 2005 12:25:45 -0700
My apology for misleading, the additional @ was spurious. Should read
[Columns setKeys:[NSArray arrayWithObjects: @"column1,@"column2", nil]
triggerChangeNotificationForDependentKey: @"column3"];
This init method sets the array for changes in column1 and column2's
values and responds with a result for column3. -right?
method is: -(double)column3{ return (double)(column1 + column2);}
This works as it should. When I go to use the value of column3 or
@sum.column3, in the next calculation eg:
[Columns setkeys; [[NSArray
arrayWithObjects:@"column1",@"column3"(or @"@sum.column3"-not actual
code),nil]
triggerChangeNotificationForDependentKey: @"column4"];
with method: -(double)column4{ return (double)(column1 + column3);}
It won't work, I think because the value of Column 3, or if I use
@sum,column3, is a read only value. All these are number values.
I'm also using another window to add,delete, & insert rows and add the
value information into the tableView though KVC, KVO and Bindings. This
window does some other calculations of values that are entered into the
TableView. The table won't update the calculated values until I add or
delete a row. Question is: how do I get the calculated values into a
usable format and also get the table to reload the values without
having to add or delete a row from the second window??? Thanks again!!!
_______________________________________________
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