Core Data, multiply values when inserted and show immedialty
Core Data, multiply values when inserted and show immedialty
- Subject: Core Data, multiply values when inserted and show immedialty
- From: Gustavo Pizano <email@hidden>
- Date: Thu, 5 Nov 2009 13:58:41 +0100
Hello.
I have set up my NSArrayController, and the NSTable with their columns
and formatters (for the number values), now, when I click the add
button, I can input values in the table cells, one of the cells is a
"totalValue" which is the product of quantity * unitPrice, I had that
column non-editable, because I was thinking that once I place the
values of quantity and unitprice that cell should show the totalValue.
I overrode the setter of totalValue in the custom NSManagedObject, and
I have done the product of the values there, but im missing something
because its not working... its not updating the value once I have put
both the unitPrice and the totalValue.
Has somebody done something like this? I guess yes.. :P,
any help will be appreciate it.
Thanks\
gustavo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden