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

I am trying to reproduce drag and drop in the cloudapp for mac system tray menu. I did a search, but did not 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 with drag and drop.

Anyone now how to do this?

+3
source share
1 answer

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

I posted a sample code in my answer to this question .

+3
source

All Articles