swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObjC + Java


From: Marcus G. Daniels
Subject: Re: ObjC + Java
Date: 19 Apr 2001 16:14:12 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "PT" == Pietro Terna <address@hidden> writes:

PT> Is it possible to access Swarm ObjC classes from a JavaSwarm
PT> application?

There are two ways:

  1) Write a file that describes the interfaces you want to export.
     This file would be like space.h, analysis.h, etc. in the Swarm
     distribution.  E.g. a @protocol for each class in your package.
     Note this requires having CREATING and USING tags to describe the
     category of the methods.  Then you run it through the etc/java-stub.el
     elisp program which generates a .jar file and shared libraries in 
     the way the Java virtual machine wants to see them.

     Advantage:    The result is clean and to users it looks like any
                   other Java library.

     Disadvantage: It's a non-zero amount of work to set up.  The stubber
                   is general but the Makefiles, etc. are not set up for casual
                   users.  I'd be willing to help set up a tool to make
                   it easy, but only if people would actually use it.
                   (I won't do work to entertain idle curiousity.)

  2) If it is just a few calls you want to make, the FArguments/FCall
     interface will let you call specific Objective C methods from Java.
    
     Advantage:    It's less work to set up
     Disadvantage: It's inconvenient to use in more complex situations,
                   since each call must be constructed at runtime via the 
                   FCall interface.
 
  

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]