Handling Opening Files

Michael Hall mik3hall at gmail.com
Thu May 1 20:59:01 UTC 2014


On May 1, 2014, at 3:09 PM, Joshua Smith <jesmith at kaon.com> wrote:

> I’ve finally bitten the bullet and moved over to Java 7 on Mac.
> 
> The only thing I’m stuck on is handling opening files when they are double-clicked in the Finder or dropped on my program in the Dock.
> 
> Are there any changes required to the file handling stuff in Info.plist for Java 7, or should one that worked with the previous Java still work?


This used to work for my AppConverter application. I haven't tried it lately. If you still have a Apple JVM application just try dragging it to the application. That should tell you if it works. 
If it doesn't something maybe is broke now. 
If it does you can check the source, I believe OSXApplication was the class.
Not sure I tested dragging to the Dock though, I usually tested dragging to the app itself.

Michael Hall

trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz

HalfPipe Java 6/7 shell app http://www195.pair.com/mik3hall/index.html#halfpipe

AppConverter convert Apple jvm to openjdk apps http://www195.pair.com/mik3hall/index.html#appconverter





More information about the macosx-port-dev mailing list