对赛车/拖放区(如停靠菜单)的建议
我想创建一个像停靠菜单一样的赛车/拖放区。看起来有点像一个带有 nsview 的堆栈。
经过大量文档搜索和谷歌搜索后,我找到了一种确定停靠图标位置的方法。 (http://cocoadev.com/forums/comments.php?DiscussionID=1431)
nzbdrop 是否创建一个看起来像堆栈的视图来显示其菜单,或者是否有更好的方法来创建它?
附加信息: 我并不是在寻找像 Drop 一样的功能,只是将 DropBox 窗口显示为应用程序图标顶部的气泡/堆栈菜单的好方法。
I'd like to create a dragster/dropzone like dock menu. Looks a bit like a stack with a nsview in it.
After a lot if documentation searching and googling I've found a way to determine a dock icon's location.
(http://cocoadev.com/forums/comments.php?DiscussionID=1431)
Is nzbdrop creating a view which just looks like an stack to display it's menu or is there a better way of creating this?
Additional info:
I'm not looking for the drop like functionality just the nice way the DropBox window is displayed as an bubble/stack menu on top of it's app icon.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于任何想要创造类似东西的人;
Matt Gemmell 为此创建了一个很好的解决方案,称为 MAAttachedWindow:
http://mattgemmell.com/source
For anyone wanting to create something similar;
Matt Gemmell created a nice solution for this called MAAttachedWindow:
http://mattgemmell.com/source
不太确定我理解你的问题,但 Dragster 和 Dropzone 应用程序显然是这样工作的:
该窗口只是一个标准应用程序窗口,尽管最有可能是模态和浮动窗口(如帮助窗口)。它可以具有您希望的任何外观。
Not exactly sure I understand your question but the Dragster and Dropzone apps clearly work something like this:
The window is just a standard application window although most likely modal and floating (like a help window.) It can have any appearance you wish.