table sizing question
table sizing question
- Subject: table sizing question
- From: Daryn <email@hidden>
- Date: Sat, 13 Dec 2003 19:36:24 -0600
How would I go about determining the minimum width needed to display a
table view of text cells w/o clipping any of its cells? There doesn't
seem to be a straightforward method. It would appear to involve
summing the minimum column sizes, which would involve iterating through
the cells and using cellSizeForBounds: to find the maximum of the
minimum widths.
For context: all I need to be able to do is set the width of a drawer
to display a table (1-2 column of at most a few dozen rows) in the
smallest possible width. Sadly, all of Cocoa's sizing routines seem
to be geared to external resizing which makes autosizing operations
particularly difficult.
There must be an easier way? If not, am I on the right track?
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.