乐高风格的可可工作流程应用程序
我目前必须开发一个与 MIT 的 Scratch 的 UI 非常相似的系统。如果您不知道,这里有一个屏幕截图: http ://kidconfidence.com/blogs/wp-content/uploads/2007/10/scratch1.png
基本上,左侧的库中有积木,您可以将其放入右侧的窗口中。我遇到的问题是,我是 Cocoa 的新手,不确定实现这一目标的最佳方法是什么。
因为你有时可以嵌套这些砖块,有时可以将它们粘在一起,我想知道是否有一些东西可以帮助实现这一点。我认识到这不是一个非常常见的接口,周围可能没有实现,但也许有部分帮助程序。
问候, 阿尔明
I currently have to develop a system very similar to MIT's Scratch's UI. In case you don't know it, here a screenshot: http://kidconfidence.com/blogs/wp-content/uploads/2007/10/scratch1.png
Basically you have bricks in the library on the left you can drop into the window on the right side. The problem I have is that I'm new to Cocoa and not sure what would be the best way to accomplish that.
Because you can nest these bricks sometimes and other times stick them together I wonder if there is something that would help implementing that. I recognize this is not a very common interface that there are probably no implementations of that around, but maybe there are helpers for parts of this.
Regards,
Armin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑:切换到桌面
没有可用于构建块的标准可可控件。您可能想要子类化 NSControl 来制作标准的砖块对象。
左侧的列表可以是 NSTableView。主要工作区域可以是 NSScrollView。
由于自由形式的拖动,您可能希望使用自己的独立于视图层次结构的砖块层次结构。
Edit: switching to desktop
There are no standard cocoa controls that you could leverage for the building blocks. You will probably want to subclass NSControl to make your standard brick object.
The list on the left could be an NSTableView. The main work area can be an NSScrollView.
You probably want to use your own brick hierarchy independent of the view hierarchy because of the freeform dragging.