gpt4 book ai didi

objective-c - NSOutlineView 和几个模型

转载 作者:行者123 更新时间:2023-12-03 18:06:01 26 4
gpt4 key购买 nike

有人可以向我指出示例开源应用程序或教程或简要说明,如何创建项目分组依据的表格 View (我认为它是 NSOutlineView,对吗?)。例如,我有按类别分组的产品并寻找如下所示的表格:

| Product name | Product cost |

- Category1

| product1 name | $100 |

| product2 name | $200 |

- Category2

| product3 name | $100 |

| product4 name | $200 |

谢谢。

最佳答案

是的,您使用NSOutlineView。苹果有sample code这准确地展示了如何做到这一点。

关于objective-c - NSOutlineView 和几个模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2288215/

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