Browse Source

Some workarounds for people still using the 10.5 SDK

tags/2021-05-28
jules 10 years ago
parent
commit
7e8cc2734d
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/native/juce_mac_FileChooser.mm
  2. +2
    -0
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 1
- 1
modules/juce_gui_basics/native/juce_mac_FileChooser.mm View File

@@ -175,7 +175,7 @@ void FileChooser::showPlatformDialog (Array<File>& results,
if ([panel runModal] == 1 /*NSModalResponseOK*/)
#else
if ([panel runModalForDirectory: juceStringToNS (directory)
file: juceStringToNS (filename)] == NSModalResponseOK)
file: juceStringToNS (filename)] == 1 /*NSModalResponseOK*/)
#endif
{
if (isSaveDialogue)


+ 2
- 0
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -1794,7 +1794,9 @@ private:
static void windowDidExitFullScreen (id, SEL, NSNotification*)
{
#if defined (MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
[NSApp setPresentationOptions: NSApplicationPresentationDefault];
#endif
}
static void zoom (id self, SEL, id sender)


Loading…
Cancel
Save