aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native/MacWindow.m
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-01-22 19:42:23 +0100
committerSven Gothel <[email protected]>2012-01-22 19:42:23 +0100
commitd19cd1049d55f93580c37f6a9599f7583e160258 (patch)
tree9c53ac69137744222bc2883c220595eedf0fda49 /src/newt/native/MacWindow.m
parent4635eb9f78456f14376ae524c8aee74019f770c5 (diff)
Fix Bug 516 (Determine Java Version) / Fix OS X 10.5 linkage (weak framework, NEWT)
- Fix Bug 516 (Determine Java Version). See gluegen: 64639b805a32338385421f168e12c1ef7f749d00 - Fix OS X 10.5 linkage (weak framework, NEWT) - Use weak framework linkage for all modules and frameworks: AppKit, QuartzCore, Cocoa, OpenGL, JavaNativeFoundation - NEWT: Handle NS exception while calling OS X >= 10.6 only methods: - 'setAllowsConcurrentViewDrawing()' - 'setCanDrawConcurrently()'
Diffstat (limited to 'src/newt/native/MacWindow.m')
-rw-r--r--src/newt/native/MacWindow.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newt/native/MacWindow.m b/src/newt/native/MacWindow.m
index 6d96e01fb..6d7978895 100644
--- a/src/newt/native/MacWindow.m
+++ b/src/newt/native/MacWindow.m
@@ -646,9 +646,13 @@ JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_macosx_MacWindow_createWindow0
[myView lockFocus];
[myView unlockFocus];
+NS_DURING
// concurrent view rendering
+ // Available >= 10.6 - Makes the menubar disapear
[myWindow setAllowsConcurrentViewDrawing: YES];
[myView setCanDrawConcurrently: YES];
+NS_HANDLER
+NS_ENDHANDLER
// visible on front
[myWindow orderFront: myWindow];