• 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: Supporting variable-number of table columns, based on source.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Supporting variable-number of table columns, based on source. (From: "Frederick C. Lee" <email@hidden>)
 >Re: Supporting variable-number of table columns, based on source. (From: Kay Roepke <email@hidden>)
 >Re: Supporting variable-number of table columns, based on source. (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: Re: NSButtonCell Ignores Button Type
  • Next by Date: Re: how to make an object with a single unique instance like NSNull?
  • Previous by thread: Re: Populating a NSTableView. Almost There....
  • Next by thread: Re: Supporting variable-number of table columns, based on source.
  • Index(es):
    • Date
    • Thread