Determining NSTableView height when doing layout in IB
-
Hi all,
Is it just me, or does IB not really provide a way to nicely set the
height of a tableview? I would like for my tableviews to have a height
such that an integer number of rows fit, without any half rows visible.
Something like:
height of scroll view containing tableview = height of table header view
+ (num rows * row height) + height of horizontal scroller.
If I resize the height of a tableview in IB, I don't get any guide marks
(dotted blue lines). Given that IB can't do this (or can it?), is my
little formula above correct?
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng <sean...>
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada -
On Fri, Feb 29, 2008 at 11:09 AM, Sean McBride <sean...> wrote:> height of scroll view containing tableview = height of table header view
> + (num rows * row height) + height of horizontal scroller.
I think the biggest problem with this would be implementing this logic
for any arbitrary view. Though it would most certainly be nice. File
a bug, maybe it'll happen (along with the restoration of all the
guides we lost from IB2... *grumble*).
--Kyle Sluder -
On Feb 29, 2008, at 08:09, Sean McBride wrote:> Is it just me, or does IB not really provide a way to nicely set the
> height of a tableview? I would like for my tableviews to have a
> height
> such that an integer number of rows fit, without any half rows
> visible.
You can always turn on alternating row colors, resize to eliminate
partial rows, then turn alternating rows off again. :)


