changeset 5848:1db4c60bfd5b

RT-33881: Mac: System menu bar doesn't work at all with MacOS 10.9 Reviewed-by: snorthov, pchelko
author Anthony Petrov <anthony.petrov@oracle.com>
date Thu, 28 Nov 2013 22:52:36 +0400
parents b6fb603c0399
children 7d1dfcec57c0
files modules/graphics/src/main/native-glass/mac/GlassApplication.m
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/native-glass/mac/GlassApplication.m	Thu Nov 28 18:17:54 2013 +0200
+++ b/modules/graphics/src/main/native-glass/mac/GlassApplication.m	Thu Nov 28 22:52:36 2013 +0400
@@ -531,7 +531,9 @@
                 [myMenu release];
 
                 [app setDelegate:self];
-                [app activateIgnoringOtherApps:YES];
+
+                // [app activateIgnoringOtherApps:YES] won't activate the menu bar on OS X 10.9, so instead we do this:
+                [[NSRunningApplication currentApplication] activateWithOptions:NSApplicationActivateIgnoringOtherApps];
             }
             else
             {