Re: Easiest way to integrate Quartz drawing into WO apps?
Re: Easiest way to integrate Quartz drawing into WO apps?
- Subject: Re: Easiest way to integrate Quartz drawing into WO apps?
- From: Andrew Lindesay <email@hidden>
- Date: Thu, 15 Mar 2007 09:01:58 +1300
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden