[MacRuby-devel] anyone using WebKit to generate dialogs?

Rich Morin rdm at cfcl.com
Sun Nov 13 09:07:37 PST 2011

Google SketchUp's WebDialog class allows Ruby plugins to
generate, launch, and support interactive dialogs, using
HTML and JavaScript.  Basically, the plugin:

*  sets up some callback code
*  generates some HTML (etc) code
*  points SketchUp at the HTML

SketchUp then puts up a window whose layout is specified
by the HTML (etc) code.  User actions may be handled by
JavaScript and/or callbacks to the Ruby plugin.

Although there are some awkward aspects to this approach,
I like the ability to generate dynamic content, use CSS
and jQuery, etc.

It looks like WebKit could provide similar capabilities,
using MacRuby as the "back end".  I'm curious whether
anyone has been playing with this approach, possibly using
HotCocoa magic to tidy things up.

http://www.cfcl.com/rdm            Rich Morin
http://www.cfcl.com/rdm/resume     rdm at cfcl.com
http://www.cfcl.com/rdm/weblog     +1 650-873-7841

Software system design, development, and documentation

More information about the MacRuby-devel mailing list