SDK and JRE bundles
Mike Swingler
swingler at apple.com
Fri Oct 7 18:38:05 PDT 2011
On Oct 5, 2011, at 2:48 AM, Michael Hall wrote:
> On Oct 4, 2011, at 12:04 PM, Mike Swingler wrote:
>
>> Are you using a derivative of <http://hg.openjdk.java.net/macosx-port/macosx-port/jdk/file/tip/src/macosx/bundle/JavaAppLauncher/src/>, or something else?
>
> I just took a quick look at this. There doesn't appear to be anything related to handling AppleEvent's yet. Is that correct? Is it a to-do?
Actually, it should work fine. The guts of the AppleEvent handling are in the eAWT code in: <http://hg.openjdk.java.net/macosx-port/macosx-port/jdk/file/default/src/macosx/native/sun/awt/ApplicationDelegate.m>, and most of that uses the standard Cocoa callbacks.
> Although I am seeing what appears to be a populated eawt folder. Are these being handled differently? My understanding was currently this was supported through a AppleEventHandler installed by the JavaApplicationStub.
Nope. The launcher just gets the JVM off the ground, and AppleEvents shouldn't be delivered until after AppKit signals applicationDidFinishLaunching. Some of the guts of how the core AWT/AppKit handling gets started are different, but most of the eAWT is just a copy/paste from the Java SE 6 version.
Regards,
Mike Swingler
Java Engineering
Apple Inc.
More information about the macosx-port-dev
mailing list