Hi Daniel, Unfortunately, it looks like drag-and-drop isn't implemented on Windows. :-(
I dug up some references that might be useful for someone implementing it: http://msdn.microsoft.com/en-us/library/ms649013%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/ms692464%28v=VS.85%29.aspx http://msdn.microsoft.com/en-us/library/bb776905%28v=VS.85%29.aspx http://git.gnome.org/browse/gtk+/tree/gdk/win32/gdkdnd-win32.c You have to do some COM stuff.. it looks like it might be easier to do in C++, but the GDK implementation does it in pure C. It would be really nice to have this working! Cheers, Eric On 2011-04-06, at 3:59 PM, Daniel Boyd wrote: > I'm having trouble to get drag & drop to work on my windows machine. > I'm kind of new to GNUStep, so I'm not sure if I'm doing something > wrong, or if what I'm doing isn't supported. > > I want to be able to drag a file from Windows Explorer into an NSBox object. > > I ran this code on the box: > > [myBox registerForDraggedTypes:[NSArray arrayWithObjects: > NSFileNamesPboardType, nil]]; > > And, then I subclassed NSBox and implemented draggingEntered, > draggingExited, draggingEnded, prepareForDragOperation (which always > returns YES) and performDragOperation > > But, when I try to drag a file from Windows Explorer, the mouse cursor > becomes a circle with a line through it and it won't let me drop. > > As far as I can tell, none of the functions in my NSBox subclass are > being called. > > Is this functionality just not supported in GNUStep/Windows or am I > doing something wrong? > > Thanks for the help! > > _______________________________________________ > Discuss-gnustep mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/discuss-gnustep _______________________________________________ Gnustep-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnustep-dev
