From d186f6e945fd157b219231fb3861b3b0ce10ee75 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 13 Oct 2011 17:04:17 +0200 Subject: OSX/SWT: Adding OSXUtil: RunOnMainThread(), IsMainThread() / Utilizing those for SWT access/calls Adding OSXUtil: RunOnMainThread(), IsMainThread() - Issuing a native call where the user Runnable is to be performed on the main thread - Enable query if we are on the main thread. Utilizing those for SWT access/calls - Using the above to call all SWT functions on the main thread if required (incomplete) TODO/Issues: - JOGL OSX CGL Context fails, ie expecting NS, but having CGL --- etc/profile.jogl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc') diff --git a/etc/profile.jogl b/etc/profile.jogl index 9b38d6a06..d46917682 100755 --- a/etc/profile.jogl +++ b/etc/profile.jogl @@ -93,6 +93,8 @@ if [ "$KERNEL" = "linux" ] ; then SWT_SUB="gtk" elif [ "$KERNEL" = "darwin" ] ; then SWT_SUB="cocoa" + KERNEL="macosx" + ARCH="x86_64" fi if [ -z "$SWT_CLASSPATH" ] ; then SWT_CLASSPATH_0=$JOGL_BUILD_DIR/../make/lib/swt/$SWT_SUB-$KERNEL-$ARCH/swt-debug.jar -- cgit v1.2.3