|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
On Sep 22, 2006, at 12:02 PM, email@hidden wrote:
ior with dropped files has little or nothing to do with the LS database.
if you remember (or search the archives), i had exactly this problem a few months back. i get openApplication and reopenApplication but not openFile. and there's way too much work in my (Ruby) launch script to simply switch to JavaApplicationStub, so i'd love to know what the magic ingredient is.
I suspect, given my experience, that what happens is that JavaApplicationStub launches the Java code, but stays connected with the JVM and listens for Apple Events from the rest of the system. Those events are then passed to the application via the ApplicationListener interface.
I think the handleOpenApplication happens as a direct result of registering the listener. When trying to get the hipster code to work, I watched the Apple Events being sent back and forth and there didn't appear to be one, which suggests the method is called whether or not a stub like JavaApplicationStub is running. Consequently an application starting via a shell script will still get the handleOpenApplication().
I must admit, I never got the handleReOpenApplication() method. _______________________________________________
Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
|>Re: handleOpenFile(ApplicationEvent) not being called (From: Elliott Hughes <email@hidden>)|
|>Re: handleOpenFile(ApplicationEvent) not being called (From: email@hidden)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.