NSOutlineViewDataSource 的 objectValueForTableColumn
objectValueForTableColumn of NSOutlineViewDataSource
关于outlineView:objectValueForTableColumn:byItem:数据源的方法,文档中有个注释说:
While this method is marked as @optional in the protocol, you must implement this method if you are not providing the data for the outline view using Cocoa bindings.
但是Apple示例的SideBar demo没有实现这个方法,也找不到任何cocoa绑定,有谁知道为什么?
为此还提供了另一种方法,请查看演示应用程序中实现的 - (NSView *)outlineView:(NSOutlineView *)outlineView viewForTableColumn:(NSTableColumn *)tableColumn item:(id)item
。
关于outlineView:objectValueForTableColumn:byItem:数据源的方法,文档中有个注释说:
While this method is marked as @optional in the protocol, you must implement this method if you are not providing the data for the outline view using Cocoa bindings.
但是Apple示例的SideBar demo没有实现这个方法,也找不到任何cocoa绑定,有谁知道为什么?
为此还提供了另一种方法,请查看演示应用程序中实现的 - (NSView *)outlineView:(NSOutlineView *)outlineView viewForTableColumn:(NSTableColumn *)tableColumn item:(id)item
。