[Mono-osx] RegisterForDraggedTypes

marange angelo at marange.nl
Wed Jun 22 18:07:42 EDT 2011


I am new to programming on OSX, but know how to program C, so I thought to
use mono to do some programming on my new mac. But I hit a wall, and hope
that someone can help me with some information.

I try to implement "drop a file on my mainwindow". I started to implement
several methods in my NSView (like draggingEntered and
prepareForDragOperation), but these are not triggered when I drop a file. I
also need to call RegisterForDraggedTypes when I create my view. I try to do
that with the call: 

RegisterForDraggedTypes(new string[] { "NSFilenamesPboardType" });

But still no joy. Do I use the call correctly ? Are do I miss something else

Thanks for your time.

Kind regards,

View this message in context: http://mono.1490590.n4.nabble.com/RegisterForDraggedTypes-tp3618409p3618409.html
Sent from the Mono - OSX mailing list archive at Nabble.com.

More information about the Mono-osx mailing list