Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sayonara, Cocoa Java




On Dec 18, 2007, at 4:34 PM, Rob Ross wrote:



It was a cool idea, and it's still a good way to implement Java extensions on the Mac versus using JNI, but alas it was an experiment that pretty much failed.

So you need developers interested in doing specific OS X things with java that the Cocoa API's give you. You need access as complete as what any other language will give you. It has to be easier and more convenient than JNI. You need it to not be a huge ongoing development and maintenance effort. Given people and a interface satisfying all of those conditions I think it would be viable.
That was why my thought was a tool that would basically rip the glue for the API from the header files. If the headers change then you just re-generate the glue. Given good headers a complete API mapping. Tuning could be done, maybe applying something like XML patches to the generation process to say force critical parts of the API to run on the main thread. No major upkeep but still a fair amount of up front effort without much point if the developers first mentioned aren't there for java. More or less what you said I guess.
But the Cocoa API's are across the platform and not just desktop. For example, you might remember the XGrid client Luca Lutterotti did...
new: XGridClient


http://lists.apple.com/archives/Java-dev/2006/Mar/msg00392.html

There is a cocoa framework for the XGrid API also available that I tested with a little using JNI. Having a tool to be able to 'rip' a java API to that framework I would think could be useful. However, I wouldn't consider that strictly desktop.


Mike Hall hallmike at att dot net http://www.geocities.com/mik3hall http://sourceforge.net/projects/macnative



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Sayonara, Cocoa Java (From: Steve Klingsporn <email@hidden>)
 >Re: Sayonara, Cocoa Java (From: Rob Ross <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.