Computed Columns in NSTableView
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.