Hi,

On 29 Jul 11, at 10:51am, cocoa-dev-requ...@lists.apple.com wrote:

> For example, lets say I have a tableview with 3 columns: quantity, unit price 
> and total. I want to calculate total using (quantity * unit price). Pretty 
> simple using a datasource but I've no idea how to do that with bindings 
> (using an NSArrayController).
> 
> Any pointer to an example of this would be greatly appreciated.

(Using Core Data with tables) I just write a method to calculate quantity * 
price and then bind the third column to that.

Cheers,

Steve_______________________________________________

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 arch...@mail-archive.com

Reply via email to