Re: Calling Obj-C Class Methods From Java
Re: Calling Obj-C Class Methods From Java
- Subject: Re: Calling Obj-C Class Methods From Java
- From: Damien Bobillot <email@hidden>
- Date: Fri, 7 Apr 2006 00:39:16 +0200
Sherm Pendley wrote :
On Apr 6, 2006, at 2:01 PM, Brian Ferris wrote:
I think they key here is that I want to do this for arbitrary
objective c classes, not just the Core Foundation and AppKit
classes mapped directly to Java classes by Apple. I also would
like to avoid JNI if possible. Am I asking too much?
Yes, I'm afraid so, and you've identified precisely why. The Java
bridge doesn't automatically create Java "wrappers" - Apple writes
the wrappers individually, I assume so that they can test them. So
without using JNI, only the classes for which Apple has written
"wrappers" are accessible from Java. At this point, with Java/Cocoa
support deprecated, I don't expect them to write any more.
Anyone may write its own java wrapper to its Cocoa classes. You need
to create .jobs files (see samples at /Developer/Java/Jobs) and use
the bridget command :
http://developer.apple.com/documentation/LegacyTechnologies/
WebObjects/WebObjects_3.1/Java/WrappingObjectiveC.html
--
Damien Bobillot
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden