• 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
Re: Bindings to simulate spreadsheet functions in NSTableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings to simulate spreadsheet functions in NSTableView?


  • Subject: Re: Bindings to simulate spreadsheet functions in NSTableView?
  • From: Negm-Awad Amin <email@hidden>
  • Date: Thu, 31 Jul 2008 08:41:34 +0200


Am Do,31.07.2008 um 07:08 schrieb vince:

thanks,
I have a tableView with two columns. Column one lists arbitrary input
numbers. Column two lists monetary (dollar) vales. I want to display the
total running sum of column one in a textField and the dynamic (total)
monetary value of column two in a separate textField at the bottom of the
application, much the same as a spreadsheet function.


Can I accomplish this using bindings? If not can someone explain?
If you use an array controller for that list (you do), you can use the @-operators of the array controller. To get a sum of the arranged objects, you enter this binding for the textfield:

Bind to: yourRowController
Controller Key: arrangedObjects
Model Key Path: @sum.attributeWithValue



thanks and sorry about the rudimentary question ...

v.
_______________________________________________

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

Amin Negm-Awad email@hidden




_______________________________________________

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


References: 
 >Bindings to simulate spreadsheet functions in NSTableView? (From: vince <email@hidden>)

  • Prev by Date: Re: Problem binding NSTextView's attributedString
  • Next by Date: Re: Binding an NSMenu to an NSArrayController
  • Previous by thread: Bindings to simulate spreadsheet functions in NSTableView?
  • Next by thread: Updating table rows with bindings
  • Index(es):
    • Date
    • Thread