• 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: Seth Willits <email@hidden>
  • Date: Tue, 29 Mar 2005 11:00:00 -0800

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

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.

<insert loud buzzer>

You should base it off of the columns identifier, not by instance variables. That's cumbersome and requires more work to expand on. Give each column a unique identifier and then look up that column later. With little work you could have the same code support any number and combination of columns.



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic


"Dreams of today are the reality of tomorrow."
------------------------------------------------------------------------ ---


_______________________________________________
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>)

  • Prev by Date: Re: Supporting variable-number of table columns, based on source.
  • Next by Date: Re: Supporting variable-number of table columns, based on source.
  • Previous by thread: Re: 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