java - Cocoa class launched from JNI -


I currently have code that calls Java from Java to Joko in JNI function from Java on my Cocoa app in Java I create a new thread and assign my NSAP representative as the main function. Here's the code that I'm using in a dummy class that creates my actual category:

  @implementation MenuLauncher - run {NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init] ; [Nsapcricity share application]; Menu * Menu = [menu sharing]]; [Nspp set deliaget: menu]; [Running NSAPP]; [Bridge release]; } @end  

This is a copy of my main function, only it is in a thread.

The result is an interface that creates menus and does not respond and only gives the Spruce beach ball.

I am making a simple statement of speech in favor of Java to keep the process alive. Coco Gui should walk in his own yarn. So why is it frozen?

You may need to run the cocoa code on the main thread, in addition to this, java command "-XstartOnFirstThread "The flag may need to be specified (because it is for SWT applications).


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -