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: Conflict between Application and StartOnMainThread



Robin Sheat wrote:

On Sunday 01 April 2007 01:30:11 Michael Hall wrote:
How about in it's own task? A little bit involved but you could
'java' Runtime exec part of the code maybe. Somewhat recent
discussion of that could be found in the archives.
Hmm. It's a thought. So, one JVM launches and have it handle the events from
OSX, and launches the real app using Runtime.exec() and pass messages using
an RPC system? It sounds quite plausible. 99% of the infrastructure to do
this is already in place (to get this kind of support on other platforms), so
I'd just need to write the loader. This is definitely worth trying.

A simpler solution would be to have the first process collect ODOC events for a specific interval, and then exec the main app passing the files as arguments through Runtime.exec. The upside of this approach is that the main app works as it does on the other platforms, and doesn't need to do anything special on the Mac. The downside is that this will stretch out your application launch time.


If you do choose to start your app asynchronously and pass events as they occur, you could use sockets, or the stdin/stout streams (from the Process object that Runtime.exec returns) to communicate between the two processes.
_______________________________________________
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.