• 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 20:37:11 +0200


On 29. Mar 2005, at 19:38 Uhr, Frederick C. Lee wrote:

Greetings:
I understand the basic method of populating a table, based on a model with a given (static/constant) number of iVars that are mapped to their respective columns of a pre-configured table structure.
But what about when you have a data source (a database table beyond Cocoa) with an unknown number of columns?


Where can I find some documentation/example out there that shows how to map an unknown/variable number of columns to a NSTableView?

Well, at some point you will know which columns you have, won't you?
You'll have to query your database about the column names and then set up the columns programmatically.


See the relevant sections of NSTableView, NSTableColumn and NSTableViewDataSource documentation for more information.

HTH,

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


  • Follow-Ups:
    • Re: 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: Seth Willits <email@hidden>
References: 
 >Supporting variable-number of table columns, based on source. (From: "Frederick C. Lee" <email@hidden>)

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