Cocoa文档指出:
setAutoresizesOutlineColumn:
Sets whether the receiver automatically resizes its outline column when the user expands or collapses an item.
- (void)setAutoresizesOutlineColumn:(BOOL)resize
Parameters
resize
YES if the outline column is automatically resized, otherwise NO.
Discussion
The outline column contains the cells with the expansion symbols and is generally the first column. The default is YES.
然而,无论我在扩展我的NSOutlineView项目时设置此值,第一列都不会扩展。
我通过" Autoresizes Outline Column"在IB中设置了值。选项和大纲列设置为列0。
有人有什么想法吗?
我在MacOS 10.8.4上使用Xcode 4.6.3。
NSOutlineView是基于视图的NSOutlineView。