NSOulineView标题单元格字体 [英] NSOulineView header cell font

查看:150
本文介绍了NSOulineView标题单元格字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在 NSOutlineView (基于源列表视图)中减小标题单元格的字体大小。问题是使用IB不适用于我(修改 NSTextField NSTextFieldCell 的字体)。

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).

视图由 outlineView:viewForTableColumn:item:返回 makeViewWithIdentifier:owner: / code>

The views are returned by outlineView:viewForTableColumn:item: using makeViewWithIdentifier:owner:

任何想法?

推荐答案

步骤解决了问题。

1)在IB中选择 NSOutlineView

2)在 Size Inspector 中选择自动 >。如果已经选择,请取消选择并再次选择它(XCode错误?)

2) In the Size Inspector select Automatic for Size Style. If it is already selected, deselect and select it again (XCode bug?)

现在可以修改 NSTextFieldCell (标题单元格和数据单元格)。

Now you can modify the font for the NSTextFieldCell (Header Cells and Data Cells) using IB.

这篇关于NSOulineView标题单元格字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆