| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hello-
The amount of Cocoa Java and Java AWT mixing suggested on this mailing list is interesting. The posts on this list are the only times I've personally heard of mixing these two technologies together.
It's good to know that this combination is working for some users, but the Apple and Sun suggested way of accessing platform specific native specialties from java is by using JNI. Accordingly, Apple has just created an official Technical Q&A about this matter. <http://developer.apple.com/qa/qa2001/qa1342.html>
For example, there are places in Cocoa Java that won't mix with Java AWT, such as when executing on the main AppKit thread is required. Cocoa's -performSelectorOnMainThread simply isn't accessible via Cocoa Java's NSObject (as it is with Obj-C). Java AWT by design doesn't allow any client java code to be executed on the AppKit main thread (perhaps modulo some bugs). So mixing the two technologies can have troubles, and isn't suggested.
| References: | |
| >Mixing Cocoa Java and Java AWT Q&A (From: Greg Bolsinga <email@hidden>) |
| Home | Archives | FAQ | 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 © 2007 Apple Inc. All rights reserved.