NSModalResponse / fails to build on Snow Leopard


#1

Hi,

Last tip fails to build on OS X 10.6 due to NSModalResponse (that is not available on that system).

/Users/nicolas/Work/grenadine/Projects/Tralala/Builds/MacOSX/../../../../../JUCE/modules/juce_gui_basics/native/juce_mac_Windowing.mm:85: error: 'NSModalResponse' does not name a type /Users/nicolas/Work/grenadine/Projects/Tralala/Builds/MacOSX/../../../../../JUCE/modules/juce_gui_basics/native/juce_mac_Windowing.mm: In member function 'int juce::OSXMessageBox::getResult() const': /Users/nicolas/Work/grenadine/Projects/Tralala/Builds/MacOSX/../../../../../JUCE/modules/juce_gui_basics/native/juce_mac_Windowing.mm:46: error: 'getRawResult' was not declared in this scope

Replacing NSModalResponse by NSInteger seems to fix it (compiles fine).


#2

Ok, thanks! Will check that..