|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Greg Guerin wrote:
Jamison Hope wrote:
You should be fine. The JSheets example code does this. The native part uses performSelectorOnMainThread: to do Cocoa GUI stuff on Thread 0, and then the "didEndSelector" callbacks (which are also run on Thread 0) attach to the JVM, do JNI to invoke a Java method, and then detach from the JVM. The Java methods use EventQueue#invokeLater (or SwingUtilities#invokeLater, same thing) to push execution back onto the EDT.
Thanks for the (re)pointer. I skimmed JSheets looking for this kind of thing, but I obviously missed it.
TN 2147 also explicitly documents this:
http://developer.apple.com/technotes/tn2005/tn2147.html#TNTAG26| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.