• 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
Intelligently resizing table columns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Intelligently resizing table columns


  • Subject: Intelligently resizing table columns
  • From: Sam Goldman <email@hidden>
  • Date: Tue, 26 Mar 2002 22:22:30 -0800

Hello all,

I am working on an application that has a table view. The columns are put
into the table dynamically and could be anything. There could be over 500
rows in the table view.

With that established, I would like to ask what a smart way to do something
would be. I want each column to be only as long as it has to be. That means
that the column would only be as wide as the pixel width of the longest
entry or the width of the pixel width of the table columns title. Of course,
it would be about 10 pixels wider for aesthetic reasons.

I would not call myself a 'seasoned' programmer. I have not even been able
to take CS at college yet because I am still in high school. When I look at
this I don't see any way to do it that wouldn't consume large amounts of
time.

I know that this is (most likely) a pain to answer, but I also know that
there are a lot of really smart people on this list. What would be a fast
way of doing the resize that I want to do?

Thanks,
Sam

--
Windows is a 32-bit patch to a 16-bit shell for an 8-bit operating system
written for a 4-bit processor by a 2-bit company without 1 bit of sense.
_______________________________________________
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.

  • Prev by Date: Dynamic Linking
  • Next by Date: Re: How to change path where Cocoa App is runnin?
  • Previous by thread: Re: Dynamic Linking
  • Next by thread: Re: Intelligently resizing table columns
  • Index(es):
    • Date
    • Thread