这个Mac OS X控件的名称是什么?

时间:2022-04-30 08:44:49

Does this control have a name? Or is it just a bunch of simple controls merged together? If so, what controls are they?

这个控件有名字吗?或者只是将一堆简单的控件合并在一起?如果是这样,他们有什么控制?

http://img8.imageshack.us/img8/3002/picture2xrb.png

3 个解决方案

#1


It looks like an NSTableView with an a custom cell type and no column header. Have a look at the documentation for NSTableView's tableView:dataCellForTableColumn:row:. For columns which have the same type for all rows you may also set the cell class in interface builder.

它看起来像一个NSTableView,具有自定义单元格类型,没有列标题。看一下NSTableView的tableView文档:dataCellForTableColumn:row:。对于所有行具有相同类型的列,您还可以在接口构建器中设置单元类。

I doubt the search box is part of the same control.

我怀疑搜索框是同一控件的一部分。

You could open the Application's Nib file to see what is in there. Look inside the application bundle. If the application is called Example then you should be able to find the Nib at Example.app/Contents/Resources/English.lproj/MainMenu.nib.

您可以打开应用程序的Nib文件以查看其中的内容。查看应用程序包内部。如果应用程序名为Example,那么您应该能够在Example.app/Contents/Resources/English.lproj/MainMenu.nib中找到Nib。

#2


The best tool for investigating this is fscript, specifically FScriptAnywhere which will let you determine the class and much other information about any visual element of any Cocoa program (and do a lot of other interesting things with Cocoa programs).

调查这个的最好的工具是fscript,特别是FScriptAnywhere,它可以让你确定任何Cocoa程序的任何可视元素的类和其他许多信息(并使用Cocoa程序做很多其他有趣的事情)。

#3


In addition to what toholio said, an easy way to get the look and feel of the bottom button bar is with BWToolkit.

除了toholio所说的,使用BWToolkit可以轻松获得底部按钮栏的外观和感觉。

#1


It looks like an NSTableView with an a custom cell type and no column header. Have a look at the documentation for NSTableView's tableView:dataCellForTableColumn:row:. For columns which have the same type for all rows you may also set the cell class in interface builder.

它看起来像一个NSTableView,具有自定义单元格类型,没有列标题。看一下NSTableView的tableView文档:dataCellForTableColumn:row:。对于所有行具有相同类型的列,您还可以在接口构建器中设置单元类。

I doubt the search box is part of the same control.

我怀疑搜索框是同一控件的一部分。

You could open the Application's Nib file to see what is in there. Look inside the application bundle. If the application is called Example then you should be able to find the Nib at Example.app/Contents/Resources/English.lproj/MainMenu.nib.

您可以打开应用程序的Nib文件以查看其中的内容。查看应用程序包内部。如果应用程序名为Example,那么您应该能够在Example.app/Contents/Resources/English.lproj/MainMenu.nib中找到Nib。

#2


The best tool for investigating this is fscript, specifically FScriptAnywhere which will let you determine the class and much other information about any visual element of any Cocoa program (and do a lot of other interesting things with Cocoa programs).

调查这个的最好的工具是fscript,特别是FScriptAnywhere,它可以让你确定任何Cocoa程序的任何可视元素的类和其他许多信息(并使用Cocoa程序做很多其他有趣的事情)。

#3


In addition to what toholio said, an easy way to get the look and feel of the bottom button bar is with BWToolkit.

除了toholio所说的,使用BWToolkit可以轻松获得底部按钮栏的外观和感觉。