DragAndDropContainer::dragOperationEnded is now a int and didn't get a event


#1

Hey,
I Updated from Juce 4 to 5 and have a problem in my Project.
In the new Juce Code is this function: virtual void DragAndDropContainer::dragOperationEnded ( const DragAndDropTarget::SourceDetails & )

now a virtual int
I changed the functions in my code to a int and everything compile’s fine. But it seems like the function get never a call. I tryed to recompile my project with juce 4 and everything is working again.

What did you changed? It seems like that the juce Api is not actual for that class.
Did i miss something?

https://www.juce.com/doc/classDragAndDropContainer

Thanks for your time
Best wishes


#2

I think you missed the big comment we left above that line of code:

   #if JUCE_CATCH_DEPRECATED_CODE_MISUSE
    // This is just here to cause a compile error in old code that hasn't been changed to use the new
    // version of this method.
    virtual int dragOperationStarted()              { return 0; }
    virtual int dragOperationEnded()                { return 0; }
   #endif

#3

Yeah you right didnt see that. Thank you