I’ve patched both juce_win_Messaging.cpp and juce_mac_Messaging.cpp so that they receive events when media is inserted/ejected, but I’m not exactly clear on the best way to get these messages to my app.
which works, but hardly seems ideal. I’d like to be able to send parameters with the message, like I could with Message instance, but I can’t see a way to do it. Any suggestions?
Can’t see how that’d help. And disk drive notifications have nothing to do with the application object anyway, so it doesn’t belong there. Using listener classes and a manager object that can register them for callbacks is a much neater way of doing things like this, and doesn’t spill over into any other parts of the code.