Found the SWT/OS X/Leopard problem

Kevin Reid <[email protected]>
Newsgroups gmane.comp.lang.e.general
Message-ID <[email protected]>
(For those that don't know, E+SWT+Mac OS X stopped working even as  
well as it had with the introduction of Mac OS X 10.5 Leopard.)

I have found a solution to the problem.

If the main thread, that is the one which public static void  
main(String[] args) is executed in, does not exit, then SWT  
applications work.

This is not too surprising considering that SWT also requires - 
XstartOnMainThread - which JVM option makes the JVM execute main() on  
the thread that is initially created by the OS.

I suspect, even though keeping that thread around is *sufficient*,  
that the *correct* solution is to use that special thread as the  
SWTRunner's thread.

I will attempt to modify the SWTRunner to implement this when I have  
time.

-- 
Kevin Reid                            <http://homepage.mac.com/kpreid/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.