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




On Sep 21, 2006, at 1:05 AM, email@hidden wrote:


On 21 Sep 2006, at 01:58, Greg Guerin wrote:

My app's CFBundleDocumentTypes consists of a single entry for "all"
CFBundleTypeName, "Viewer" CFBundleTypeRole, and "****" for
CFBundleTypeOSTypes.

I tried switching to "Viewer" in case that was needed to pick up the message, but it didn't make a difference.


You could try seeing what AppleEvent's your application is actually receiving.
This could be accomplished by setting the following environment variables.


# For AppleEvent debugging
#export AEDebugSends=1
#export AEDebugReceives=1

You can either make your application's executable a shell script that sets these (and then runs the JavaApplicationStub) or use LSEnvironment in your Info.plist
http://developer.apple.com/documentation/MacOSX/Conceptual/ BPRuntimeConfig/Articles/EnvironmentVars.html


Try dragging a file you think should work to your application icon. If the application icon changes appearance to show selected, it should work, if it doesn't - it shouldn't.
If it doesn't appear like it will work even though the set up seems correct try duplicating the application and drag to the duplicate. You may of already made some tweak to the application, changed the Info.plist or whatever, that has broken some launch services functionality. If it appears the duplicate will work - delete the original application and rename the duplicate back to take it's place.
(If this is the case, you could file a bug - my last was closed for 'expected behavior')



Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



Attachment: smime.p7s
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

References: 
 >Re: handleOpenFile(ApplicationEvent) not being called (From: Greg Guerin <email@hidden>)
 >Re: handleOpenFile(ApplicationEvent) not being called (From: 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.