I'm trying to reduce the font size of the Header Cell in a NSOutlineView
(source-list view-based). The problem is that using IB doesn't work for me (both modifying the font for NSTextField
and NSTextFieldCell
).
The views are returned by outlineView:viewForTableColumn:item:
using makeViewWithIdentifier:owner:
Any ideas?
These steps solved the problem.
1) Select the NSOutlineView
in IB.
2) In the Size Inspector
select Automatic
for Size Style
. If it is already selected, deselect and select it again (XCode bug?)
Now you can modify the font for the NSTextFieldCell
(Header Cells and Data Cells) using IB.
来源:https://stackoverflow.com/questions/9383181/nsoulineview-header-cell-font