Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Receiving files dragged to the Dock in a pure-Java app



>Currently, I'd like to allow a file generated by our application
(always either .rml or .pml extensions) to be dragged onto the 
>app's Doc icon and it receive and load it.
>
>	Our app is distributed using Java Web Start, so I can't do any
of the fancy bundle creation stuff, which is where I sense you
>register what file types an app can receive. 

You can specify file type associations in the WebStart JNLP file: 

<jnlp spec="1.0+" codebase="http://localhost/editlivexml";
href="designer.jnlp">
	<information>
		...
		<association extensions="els"
mime-type="x-application/elx-solution" />
		...
	</information>
	...
</jnlp>

Not sure how or if that works with OS X though.  It does work for us
quite nicely on Windows.

Regards,

Adrian Sutton.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.