简体   繁体   English

AppKit中此组件的名称是什么?

[英]What's the name of this component in AppKit?

I want to know the name of sidebar-like component below. 我想在下面知道类似侧边栏的组件的名称。 Screenshot of AirMail 航空邮件的屏幕截图 航空邮件的屏幕截图
Screenshot of Tweetbot Tweetbot的屏幕截图 Tweetbot的屏幕截图

Both of them have same width and similar appearance, so I thought that the component is available in AppKit but I couldn't find it in documentation by myself. 它们都具有相同的宽度和相似的外观,因此我认为该组件可在AppKit中找到,但我自己在文档中找不到它。

I've googled about NSTabViewController and NSSplitViewController, but I don't think they are the answer I want. 我已经在NSTabViewController和NSSplitViewController上进行过Google搜索,但我认为它们不是我想要的答案。

If you have any idea, please tell me! 如果您有任何想法,请告诉我!

Airmail is using a subclass of NSTableView as you can see in the following screenshot showing Airmail and F-Script Anywhere side-by-side: 正如下面的屏幕快照中并排显示了Airmail和F-Script Anywhere一样, NSTableView正在使用NSTableView的子NSTableView

航空邮件

F-Script Anywhere is generally very useful for finding out which UI components an app is using. 通常, F-Script Anywhere对于查找应用程序正在使用的UI组件非常有用。 Another good alternative is the new Debug View Hierachy feature in Xcode. 另一个不错的选择是Xcode中的新Debug View Hierachy功能。 To use this, open any macOS project in Xcode, then attach the debugger to the app you would like to inspect (Debug - Attach to Process) and click the Debug View Hierarchy button. 要使用此功能,请在Xcode中打开任何macOS项目,然后将调试器附加到要检查的应用程序(“调试-附加到进程”),然后单击“调试视图层次结构”按钮。

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

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