Cocoa/OSX 标记 UI

发布于 2024-10-05 18:16:03 字数 423 浏览 9 评论 0原文

我希望在 OSX 上实现一个标记接口,让用户可以键入文本“标记”来附加到对象。理想情况下,我想实现一个精美的 UI,如下面的屏幕截图所示:

alt text -

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:

alt text
-

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风筝在阴天搁浅。 2024-10-12 18:16:03

看一下 NSTokenFieldCell

Take a look at NSTokenFieldCell.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文