Window zooming and NSTableView column widths
Window zooming and NSTableView column widths
- Subject: Window zooming and NSTableView column widths
- From: "Sean McBride" <email@hidden>
- Date: Tue, 28 Sep 2004 01:29:57 -0400
I have a window who's primary object is an NSTableView. I'm implementing
window zooming (windowWillUseStandardFrame:defaultFrame:).
Computing the best height is working fine (this list's archives were
invaluable).
But to compute the best width I'd like some advice. If the window is
resized very wide I should narrow it a bit. My first idea was to ask
each column for its width. The 'problem' is that the rightmost column
reports its width as going all the way to the right of the table view.
My next idea is to query each row of the rightmost column for the width
of its string, and use the widest one as a guide.
What do you think?
Thanks!
_______________________________________________
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