views:

54

answers:

0

hi all,
I recently started programming with xCode and PyObjC and I'm trying to create a logistics application. I have a table with the store's items and a second table with the expenses. Until now everything worked ok by using just the interface builder to link values to core data information and I didn't have to write any code. Now the problem is that I have an attribute "cost" in the expenses table which should not be entered by the user. Instead it has to be calculated internally the instance the user enters the number of items of the transaction. Furthermore I want the number of those items to be added to the amount of the items in the storage.
Here is a graphic view of my problem.
Also, if this is possible when the user enters a value in the "number" column it will be great (to get rid of the "insert" button. Thanks a lot in advance.