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

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

问题描述

我正在尝试将拖放到cloudapp for mac的系统栏菜单中。
我做了一些搜索,但没有找到任何可以帮助我的东西。
要创建菜单,我遵循本教程 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.

有没有人现在怎么做?

推荐答案

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

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

我在我对这个问题的回答

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

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