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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%
40woomeranet.com.au
This email sent to [EMAIL PROTECTED]
_______________________________________________
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]