Open edoardoc opened 8 years ago
yep, it's a known problem. :)
no idea how to hook & modify it. Any idea?
if I am not mistaken everything happens thanks to
[objc_getClass("DVTTableCellViewOneLine") aspect_hookSelector:@selector(awakeFromNib) withOptions:AspectPositionAfter usingBlock:fontBlock error:nil];
if so I would try and play with AspectPositionAfter
but I have no idea if this would be the right way to go :)
the rowHeight
of NSOutlineView
can change the height of cell
but it only effect when outlineView initialized.
it's not work when i change the font.
and though i can change the height, still lot of problem should work out. the frame of the titleLabel and detailTitleLabel of the cell must be adjusted.
so i suggest not to choose a big size font. :)
are u talking about property
@property (nonatomic, weak) NSView *outlineView;
in XcodeCustomizeFont.m ?
yes, it's a type of NSOutlineView
, which is a subclass of NSTableView
check out this: http://stackoverflow.com/questions/7504546/view-based-nstableview-with-rows-that-have-dynamic-heights?answertab=active#tab-top it looks there is a way to do it, without setting the height in the init section of NSOutlineView. plus, if you set a bigger font, you will see that some of the tabs of the navigator already do that: you can see it clearly in the issue tab (see screenshot)
as u can see from attached screenshot, increasing font size doesn't increase the blue selector band accordingly and bigger letters gets cut in the bottom.