From: Greg Guerin <glgu...@amug.org>
Date: November 14, 2007 1:12:13 PM EST
To: java...@lists.apple.com
Subject: Re: [jna-users] Accessing static Objective-C from JNA
Timothy Wall wrote:
I recall seeing mention (on this list or another) of some C-
accessible
functions for manipulating objc objects. A quick google didn't
turn up what
I thought I'd seen.
A quick ADC Search found this:
<http://developer.apple.com/documentation/MacOSX/Conceptual/
universal_binary/universal_binary_tips/chapter_5_section_23.html>
JNA provides access to shared libraries presenting a C calling
convention;
the original poster needs to be directed to references on
accessing ObjC in
that manner. It may be that JNA may not be appropriate for ObjC
interop, or
that a shim layer would be useful, or something else (maybe
JNIDirect?).
It may also be useful to see how other languages have bridged to
ObjC, like
the PyObjC bridge or the RubyCocoa bridge. Google finds those
easily. It
also finds a wealth of hits for these keywords:
objective c bridge
Further questions might be better directed to the Cocoa-dev list,
or the
ObjC list. After all, the question is grounded in C, ObjC, and
native code.
Once one knows how that works, figuring out how to frame it for
Java's JNI
API should be about the same as any other Java-to-C issue.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (Java...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/twall%40users.sf.net
This email sent to twa...@users.sf.net