Cocoa/OSX 标记 UI
我希望在 OSX 上实现一个标记接口,让用户可以键入文本“标记”来附加到对象。理想情况下,我想实现一个精美的 UI,如下面的屏幕截图所示:
-
Note: This shows multiple states
此 UI 允许用户键入标签,然后在按下 Enter 键时将它们分组为圆形。可以通过拖动到突出显示(以深蓝色显示)并按删除来删除它们。我认为这是一个灵活的界面,可以快速记下一堆标签,而无需重复按表单按钮。
我在 Mail.app 和 OSX 中的其他一些地方看到过这个界面,所以这让我想知道是否有某种可可类可以实现这一点。有人知道其中一个吗?如果没有,我想我正在查看自定义 opengl 视图。
I'm looking to implement a tagging interface on OSX that lets users type text "tags" to attach to an object. Ideally, I'd like to implement a fancy UI like the screenshot below:
-
Note: This shows multiple states
This UI lets the user type tags, then groups them into a rounded shape when enter is pressed. They can be deleted by dragging over to highlight (shown in dark blue) and pressing delete. I think this is a slick interface for quickly jotting down a bunch of tags without having to repeatedly press form buttons.
I've seen this interface in Mail.app and a few other places in OSX, so that makes me wonder if there's some sort of cocoa class out there for this. Anyone know of one? If not, I guess I'm looking at a custom opengl view.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看一下
NSTokenFieldCell
。Take a look at
NSTokenFieldCell
.