TableView and Bindings
TableView and Bindings
- Subject: TableView and Bindings
- From: David Gardener <email@hidden>
- Date: Fri, 6 May 2005 16:26:14 -0600
How do you get a the sum, average etc. of a tableView column so that
the value is reusable in another method. Using bindings will give you
the sum - say in a text field with the bindings info window.
eg. TextField
Bind to: NSArrayController
ControllerKey: arrangedObjects
ModelKeyPath: @sum.column1
but you can't reuse the value.
If the NSArrayController has the array of objects in the TableView how
do you access it to get the sum value for say.
new varaible NSNumber * totalSum; newMethod -(NSNumber
*)totalSum;
_______________________________________________
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