Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: handleOpenFile(ApplicationEvent) not being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: handleOpenFile(ApplicationEvent) not being called



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.
 _______________________________________________
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

References: 
 >Re: handleOpenFile(ApplicationEvent) not being called (From: Elliott Hughes <email@hidden>)



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.