[Mac]如何从系统栏菜单中的cloudapp重现拖放? [英] [Mac]How to reproduce drag and drop from cloudapp in the system bar menu?

查看:119
本文介绍了[Mac]如何从系统栏菜单中的cloudapp重现拖放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图重现拖放到cloud的cloudapp的系统栏菜单。
我做了一些搜索,但没有找到任何可以帮助我。
要创建菜单,我按照本教程 http: //cocoatutorial.grapewave.com/2010/01/creating-a-status-bar-application/ ,但现在我坚持拖放。

I'm trying to reproduce the drag and drop into the system bar menu of cloudapp for mac. I've done some search but doesn't find anything that could help me. To create the menu I followed this tutorial http://cocoatutorial.grapewave.com/2010/01/creating-a-status-bar-application/ but now I'm stuck on the drag and drop.

现在有没有人能这样做?

Does anyone now how to do that ?

推荐答案

您需要在 NSStatusItem 并在该视图中实现拖放。

You need to use a custom view in your NSStatusItem and implement drag and drop in that view.

我在我对此问题的回答

这篇关于[Mac]如何从系统栏菜单中的cloudapp重现拖放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆