Cocoa 中 .Net 数据中继器的等效项
我对 Xcode 和 Interface Builder 完全是菜鸟。我使用的是 3.2.3 版本和 OSX 10.6.4。
我想知道但没能找到的是如何显示 n 个项目的列表。使用.Net,我可能会使用数据重复器控件,然后使用它来重复填充我想要显示的控件。
是否有等效的方法或者我是否以错误的方式处理事情?我在 IB 控件库中没有看到任何我正在寻找的东西。
非常感谢任何帮助,甚至是相关教程或其他内容的指导。
问候, 伊恩
I'm a total noob to Xcode and Interface builder. I'm on version 3.2.3 and OSX 10.6.4.
What I'd like to know, and haven't been able to find out, is how to display a list of n items. Using .Net, I'd probably use a Data Repeater control and then use that to repeatedly populate the controls I'd like to display.
Is there an equivalent or am I going about things in the wrong way? I don't see anything in the IB controls library that is quite what I'm looking for.
Any help is much appreciated, even a direction to a relevant tutorial or something.
Regards,
Iain
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我猜您正在寻找 NSTableView 及其数据源(ArrayController 或等效项)及其委托(用于定义 N 个项目)?
I guess you are looking for NSTableView with it's DataSource (ArrayController or equivalent) and it's delegate (for defining N items)?
显示列表的最常见视图是 NSTableView。网络上有很多很多教程...只需谷歌“nstableview 教程”并进行选择。 :-)
The most common view for displaying lists is NSTableView. There are many, many tutorials on the web... Just google 'nstableview tutorial' and take your pick. :-)