• 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
Computed Columns in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Computed Columns in NSTableView


  • Subject: Computed Columns in NSTableView
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 21 Jun 2004 14:27:16 +0200

I have a NSTableView which is bound to some NSArray which contains NSDictionaries, which have keys "Width" and "Height".

But I would like to have another column called "Size" which should contain Width * Height.

But there is no key in my NSDictionary called "Size", rather I would like to compute it (trying not to store redundant data).

Is there a way to do this? Bind the Size-column to some method named "size"? If yes, how would this method know which NSDictionary it has to take?

It seems that the bindings are really powerful (and save a lot of coding) but they exceed the narrow limits of my understanding.

Any help?

Gerriet.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Computed Columns in NSTableView
      • From: Mike Ferris <email@hidden>
  • Prev by Date: Bindings with NSTableView
  • Next by Date: How to implement NSBrowser -shouldSelectCell:?
  • Previous by thread: Bindings with NSTableView
  • Next by thread: Re: Computed Columns in NSTableView
  • Index(es):
    • Date
    • Thread