Re: Tables created in code have different row height from those created in IB
Re: Tables created in code have different row height from those created in IB
- Subject: Re: Tables created in code have different row height from those created in IB
- From: Corbin Dunn <email@hidden>
- Date: Wed, 22 Mar 2006 10:59:35 -0800
On Mar 21, 2006, at 6:48 PM, Greg Herlihy wrote:
Actually, Interface Builder does adjust the height of an
NSTableView's rows
to match the table's font. For example selecting a table, choosing
Format->Font->Smaller changes both the table's font size (from 13 to
12) and
reduces the height of its rows (from 17 to 16).
Yes, I realize this -- (generally) all IB inspectors will change
properties of their corresponding controls. However, tableview itself
will not dynamically change its set rowHeight if you change the font.
Mainly because doing so is ambiguous; one could have one particular
font in one tablecolumn, and a different font in another.
The size of the default font for a table (more precisely, the font
size of
of NSTableColumn's default cell) changed between Panther and Tiger.
For apps
linking against Panther or earlier the default font is Lucida Grande
12, for
Tiger-linked apps the default font is Lucida Grande 13. The default
height
for the former is 16 and for the latter, 17.
This change may help explain the apparent discrepancy.
Yes...this is true! The unfortunate thing is that some people may be
depending on the default row height to be 16. For example, they may
code a tablecolumn that has a font size of 12, which looks okay with a
row height of 16, and don't worry about resetting the row height
because of that. I'll consider making this change for Leopard linked
apps. Ideally, this sort of change should have happened for Tiger..but
unfortunately, it did not.
Thank you everyone for the feedback! I appreciate it.
--corbin
_______________________________________________
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