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: communication between Applications



On Apr 2, 2004, at 11:40 AM, Michael Hall wrote:

On Friday, April 2, 2004, at 12:28 PM, Tom Eager wrote:

Since AppleEvents are not straight forward in Java 1.4.2 for communication between Applications (same machine), what is recommended for communication between a Java application and a carbon application ?

In what way are AppleEvent's "not straight forward" or suitable for communications?

Mike Hall <mikehall at spacestar dot net>
<http://www.spacestar.net/users/mikehall>
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.



The one example that Apple gives (AESendandReceive) for AppleEvents will not work in 1.4.x. because it uses JDirect which is only supported (and available) in 1.3.1, not 1.4.x. Except for the JDirect part, the native methods it calls are appropriate for 1.4.2, but instead of using JDirect you will need to use JNI.

I have thus far created 3 simple JNIs to emulate MJR classes. I think that I have 3 more JNI's to create. The trickiest will be MethodClosure.

I thought this should have been easier because the OS X documents recommend AppleEvents.


Tom
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: communication between Applications (From: Michael Hall <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.