gpt4 book ai didi

cocoa - NSOutlineView 和 NSTableView 的区别

转载 作者:行者123 更新时间:2023-12-03 16:08:58 29 4
gpt4 key购买 nike

告诉我 NSOutlineView 和基于 View 的 NSTableview 之间的区别,因为我知道基于 View 的 TableView 可能不包含树 Controller ,而 NSOutlineView 可以包含树 Controller 对象

这是对还是错

最佳答案

Apple says最好的是:

NSOutlineView is a subclass of NSTableView that lets the user expand or collapse rows that contain hierarchical data. As in a table view, an outline view displays data for a set of related items, with rows representing individual items and columns representing the attributes of those items. Unlike a table view, items in an outline view are not in a flat list, but rather may be organized in a hierarchy, like files and folders on a hard drive, or managers and employees in an organization.

所以,是的,你说的是真的。

关于cocoa - NSOutlineView 和 NSTableView 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18378455/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com