Intelligently resizing table columns
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.