Hello Ken;
What's the best way to get to Cocoa/Obj-C code from WO/Java apps? First one to say "Cocoa/Java bridge" gets a slap :)
The approach I have taken is to write a very basic web-server in Cocoa as a library. The library is able to vend actions using the JSON-RPC protocol (http://json-rpc.org/wd/JSON-RPC-1-1- WD-20060807.html). This library is then linked from a custom project which can then actually do something with the inbound JSON-RPC invocations. The invocations are then made from the WebObjects instance(s) and so I can do something with CoreGraphics (not AppKit) and return a response back to a WebObjects instance.
An older technique I used was to back this all onto an open source CGI library and write a small CGI program which could be accessed via apache. That is less complex perhaps, but more fiddly.
You may ask why I don't just use the graphics machinery in java -- the answer is a bit convoluted, but there are good reasons! Somebody suggested you use JFreeChart and that may be a far easier approach. I've found this library to be really nice to work with and the results are also quite acceptable.
cheers. ___ Andrew Lindesay www.lindesay.co.nz _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
