[Mac]How to reproduce drag and drop from cloudapp in the system bar menu?

孤街醉人 提交于 2019-12-07 15:24:52

问题


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 ?


回答1:


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

I posted example code in my answer to this question.



来源:https://stackoverflow.com/questions/9748459/machow-to-reproduce-drag-and-drop-from-cloudapp-in-the-system-bar-menu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!