• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data, multiply values when inserted and show immedialty
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Core Data, multiply values when inserted and show immedialty
      • From: Volker in Lists <email@hidden>
    • Re: Core Data, multiply values when inserted and show immedialty
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: PolKit for Leopard and later
  • Next by Date: Re: Best pattern for similar objects with differences
  • Previous by thread: Re: IBOutlet getting messed up in the runtime
  • Next by thread: Re: Core Data, multiply values when inserted and show immedialty
  • Index(es):
    • Date
    • Thread