Re: Supporting variable-number of table columns, based on source.
Re: Supporting variable-number of table columns, based on source.
- Subject: Re: Supporting variable-number of table columns, based on source.
- From: Kay Roepke <email@hidden>
- Date: Tue, 29 Mar 2005 22:06:02 +0200
On 29. Mar 2005, at 21:15 Uhr, Frederick C. Lee wrote:
I'm a little lost about mapping the new table columns to the source
columns (beyond pre-defined iVars in a data model).
I sense I need to change the paradigm and use a NSArrayController or
something like that.
You'll just need to take the column's name from your
tableView:objectValueForTableColumn:row: datasource method
and use that name somehow to get your value. Probably you want to do a
database lookup for the given row (maybe
you even have cached that row already?) and return the appropriate
value for the column.
Kay
_______________________________________________
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