Setting the size of NSTableView columns
Setting the size of NSTableView columns
- Subject: Setting the size of NSTableView columns
- From: Eric Gorr <email@hidden>
- Date: Mon, 10 Dec 2007 22:43:15 -0500
I know what text will be appearing in the cells of my table and I am
building the table dynamically in my code.
What I would like to be able to do is explicitly set the width of my
columns to be only as wide as they need to be.
I believe I can determine the width of the text using the
sizeWithAttributes message, but I am not certain what the attributes
should be. Is it possible to determine the attributes which will be
used for table cells containing text?
Is there some other way to do what I want?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden