• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Calling Obj-C Class Methods From Java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Calling Obj-C Class Methods From Java (From: Brian Ferris <email@hidden>)
 >Re: Calling Obj-C Class Methods From Java (From: Sherm Pendley <email@hidden>)

  • Prev by Date: FYI: NSKeyedArchiver success
  • Next by Date: Re: Should I use Sync Services?
  • Previous by thread: Re: Calling Obj-C Class Methods From Java
  • Next by thread: cross development behaviour : dock disappears
  • Index(es):
    • Date
    • Thread