10 messages in net.java.dev.jna.usersFwd: [jna-users] Accessing static Obj...
FromSent OnAttachments
James WayNov 6, 2007 8:00 am 
Timothy WallNov 13, 2007 1:00 pm 
Wayne MeissnerNov 13, 2007 3:48 pm 
Duncan McGregorNov 13, 2007 4:10 pm 
Timothy WallNov 14, 2007 5:34 am 
Timothy WallNov 14, 2007 5:58 am 
Timothy WallNov 14, 2007 11:23 am 
Duncan McGregorNov 14, 2007 12:49 pm 
Shawn EricksonNov 14, 2007 1:13 pm 
Wayne MeissnerNov 26, 2007 8:15 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Fwd: [jna-users] Accessing static Objective-C from JNAActions...
From:Timothy Wall (twal@dev.java.net)
Date:Nov 14, 2007 11:23:54 am
List:net.java.dev.jna.users

Begin forwarded message:

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