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: Thomas <email@hidden>
- Date: Thu, 15 Mar 2007 09:14:41 +1100
Andrew,
the topic of WO applications getting access to all the cool new
Quartz functionality came up at the Sydney WebObjects dinner last
month. One of the Apple staff, whose name I can't recall, sitting a
few seats away from you, promised to get back to me with information
(or a contact) on how to make this possible. The big stumbling block
was having a server with no monitor and nobody logged in. He hasn't
got back to me...
So how did you get around the lights-out Quartz problem? Did you? If
so, I'd love to hear some more details of your Cocoa web server.
Regards
Thomas
On 15/03/2007, at 7:01, Andrew Lindesay wrote:
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:
40woomeranet.com.au
This email sent to email@hidden
_______________________________________________
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