简体   繁体   English

可可查找器应用列表视图

[英]Cocoa Finder app List view

Being a starter in Cocoa Programming, I would like to know using the existing NSTableView can one be able to achieve Disclosure Button? 作为可可编程的入门者,我想知道使用现有的NSTableView能否实现Disclosure Button? Or one has to follow NSOutlineview ? 还是必须遵循NSOutlineview

在此处输入图片说明

From the above picture, on selecting the list view and getting a Folder[Super view] and getting the children using a Disclosure button 从上面的图片中,选择列表视图并获取文件夹[超级视图],并使用“披露”按钮获取孩子

Also can a registered Mac Developer get Finder app's sample code? 注册的Mac Developer也可以获取Finder应用程序的示例代码吗?

Thanks 谢谢

NSOutlineView is just a subclass of NSTableView, so yes just use NSOutlineView to use the disclosure button. NSOutlineView只是NSTableView的子类,因此可以使用NSOutlineView来使用显示按钮。

Check out the docs for how to use it. 查看文档以了解如何使用它。

And no, Apple never released the source code for Finder. 而且,苹果从未发布过Finder的源代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM