• 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
TableView and Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TableView and Bindings


  • Subject: TableView and Bindings
  • From: David Gardener <email@hidden>
  • Date: Fri, 6 May 2005 16:26:14 -0600

How do you get a the sum, average etc. of a tableView column so that the value is reusable in another method. Using bindings will give you the sum - say in a text field with the bindings info window.
eg. TextField
Bind to: NSArrayController
ControllerKey: arrangedObjects
ModelKeyPath: @sum.column1


but you can't reuse the value.
If the NSArrayController has the array of objects in the TableView how do you access it to get the sum value for say.


new varaible NSNumber * totalSum; newMethod -(NSNumber *)totalSum;


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Displaying HTML in an NSTextView
  • Next by Date: Re: Displaying HTML in an NSTextView
  • Previous by thread: Bindings: inspector w/bindings?
  • Next by thread: Swapping an NSView between NSWindows
  • Index(es):
    • Date
    • Thread