NSCollectionView 的清晰示例和最佳方法
我在网上查找了这个,但找不到任何关于如何成功实现 NSCollectionView 的明确教程。我应该如何进行?
在 Interface Builder 中,我可以将 NSCollectionView 拖到主视图中,我看到文档窗口中还有另外两个新视图:我想一个是 collectionView 中的实际 NSView,另一个是每个视图的 NSView 原型将在集合中显示的元素。
但从现在开始我不知道该怎么办。
任何帮助将不胜感激,但无论如何先谢谢你。
——阿尔贝
I looked for this on the web, but I could not find any clear tutorial on how to successfully implement an NSCollectionView. How should I proceed?
In Interface Builder, I can drag an NSCollectionView to the main view, and I see that there are two other new views in the documents window: I suppose one is the actual NSView inside the collectionView, and the other one is the NSView prototype for each of the elements that will be displayed inside the collection.
But from now on I don't have any idea about what to do.
Any help would be very appreciated, but thank you anyway in advance.
—Albé
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Xcode>帮助>开发人员文档...
集合视图编程指南包含分步教程。 (事实上,这就是它目前包含的全部内容。)。示例应用程序 IconCollection 均使用合理的绑定和代码进行设置,以显示集合视图的工作原理。
Xcode > Help > Developer Documentation...
The Collection View Programming Guide contains a step-by-step tutorial. (In fact, that's all it contains at present.). The sample app IconCollection is all set up with reasonable bindings and code to show how the collection view works.